by Aaron Bertrand
Easy Stored Procedure Execution
If you’ve written stored procedures, this little paragraph probably isn’t going to be shocking news for you. If you are in charge of making sure that existing stored procedures are fired at appropriate times, read on.
If you’ve written stored procedures, this little paragraph probably isn’t going to be shocking news for you. If you are in charge of making sure that existing stored procedures are fired at appropriate times, read on. This is a little tip on simplifying ASP-driven stored procedures, provided they don’t return any data. Contrary to the exhaustive coding techniques recommended by Microsoft (man, that’s a lot of code!), here is a much simpler way to handle an SP:
Wasn’t that easy? No Recordset objects, no Command objects, no messy parameter statements, etc etc. No muss, no fuss. However if your stored procedure needs to return a recordset to your ASP code, you’re not going to get away this easy. 😉
Can’t open IIS 4.0 MMC with certain user accounts?
Many people have complained about only being able to use the Internet Services Manager snap-in by logging in with the account that initially installed the Option Pack. Patrick Philippot recently shared his wisdom, explaining how he made the MMC behave under ALL accounts (please back up your registry before attempting this!):
Compiling DLL: ‘Permission Denied’
Writing server-side WebClasses or business objects and having problems compiling them? Create this little batch file, which will force IIS to release DLLs from memory (this works on PWS for Win98 and NT Workstation, as well as IIS on NT Server):
You might need to add additional lines for other dependent services, e.g. if you are running an FTP server, you’ll want to add a third line:
Of course, this procedure is not recommended on a production machine (except when the code is done and it’s time to upload), as it would wreak havoc on your uptime ratio. I have this batch file sitting on my taskbar, and a copy of it on my desktop. It’s probably my most commonly-used shortcut!
Those darn text fields!
Using a SQL Server text field, and having difficulty getting it to display in your ASP page? Here are some things to look out for:
Here is a sample (assume “text1” and “text2” are TEXT type fields):
” & t2 & “
“)
rs.movenext
loop
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
🙂
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.