Get programming code snippets and tips for HTML, CSS, ASP, SQL, JavaScript, RSS, XML, and more
Lee's Code        A web programmer's toolbox. SEARCH SITE
HOME  |  ABOUT LEE  |  CONTACT  |  SEARCH
Home > Code > ASP > Detect Record State and Database State. Close recordset and database

Navigation

Latest Additions

Links


 

Recommendations

Evolve Online
Powered by
Evolve Online
 

Detect Record State and Database State. Close recordset and database

By: Lee A. Shurie
 
Subject: Recordsets and database connections
Language: ASP
Rating:
 Rated 46 times. Rate or review this item: 1 2 3 4 5
 Read Reviews
 
Information
This code snippet illustrates how to detect an open recordset and close it. Same for an open database connection.

If you do not first detect the state of the recordset or the database and you attempt to close it, you will get an error if it is not open. This code eliminates the error by first detecting the state of the recordset or the database connection.
 
Code


 
Keywords:asp detect open recordset, detect open database connection, close recordset, close database connection
 

Lee's Code programming tips and tricks. Back to top of page.

Programming tips and tricks for ASP, javaScript, SQL, SML, CSS, HTML HOME | ABOUT LEE | CONTACT | SEARCH
 
Copyright © 2001 - 2010 by Lee A. Shurie