Friday, December 14, 2007

How to close an ADO Connection?

How to close an ADO Connection?

If we do not need to use the database, we need to close the Connection object:

<%

conn.close 'Close the current connection, but you can still use it to open another connection

set conn = nothing 'remove the ADO Connection from the system resource.

%>

No comments: