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!

connection object with javascript

Status
Not open for further replies.

muralinaidu

Programmer
Jan 2, 2001
27
DE
hi,
i am using conneciton object in javascript. every thing is working fine. but i don't know how to set a connection variable to nothing in javascript. lets take the below code as an example.
dim cn
set cn=Server.CreateObject("Adodb.Connection")
cn.Open "so","so"
now do what ever u want and close it like the below
cn.Close
set cn=nothing

can any one of u tell me how to set connection variable to null like the above in javascript.

thanking you
murali
 
cn = null; //should do the trick

Later, Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top