Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

asp connection object with javascript

Status
Not open for further replies.

muralinaidu

Programmer
Jan 2, 2001
27
DE
hi,
can any one tell me how to set a connection variable to nothing. actually in vbscript we do it in the following way.
dim cn
set cn=Server.Createobject("Adodb.Connection")
now after doing some tasks we close it like the following.
cn.Close
set cn=nothing.
above set cn=nothing is to kill the variable. now i am doing the same conneciton things in javascript. i know till closing a connection object. but i don't know how to set it to null after closing.

thanking you
murali
 
var conn = Server.CreateObject("ADODB.Connection");
conn.Open("DSN=;UID=;PWD=;");
luciddream@subdimension.com
 
It's pretty similar to that of vbscript:

cn.Close();
cn = null;


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top