Ever want to display (and edit) ASP code from the original .asp file? (like PHP's PHPInfo() function).
To setup:
* Just create a .asp with SQL Server connectivity.
* Change @IISHostNameWWWPath to match your servername
-OR-
if SQL Server is on the same machine, use the next
line instead. (see script)
* Edit your .asp page to pass
Request.ServerVariables("PATH_INFO")
to usp_ViewASP procedure.
One cool enhancement would be to check to see if the person has (let's say) a asp_developers role in the database. You could create a page to allow only special users to view/edit the code, within the browser!
Quick update/insert into one table from another
This script will show how quickly update records in one table with information from another or insert records if they are completely new.
2002-04-23
2,199 reads