Close the Objects and free up Server resources

Close each object when done with them. This frees resources and memory. This applies to objects that support close methods, especially connections and recordsets!

Set each object variable to nothing when done with it.
Notice the close and set to nothing at the end of the code. NEVER forget it in your code.

<%
recordset.close
set recordset=nothing
connection.close
set connection=nothing
%>

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.

Get your best asp web hosting provider now and save 25%