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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Garbage collection for db connection objects

Status
Not open for further replies.

multiplex77

Programmer
Dec 25, 2001
302
SG
Hi,

What would be the negative consequences of not doing garbage collection for database connection objects and recordsets? (i.e., closing them and setting them to Nothing)

Also, is it okay to

Set connectionObj = Nothing

And

Set recordsetObj = Nothing

without first doing

connectionObj.Close and recordsetObj.close?

Thanks for the advice!
 
Why? You might as well just do it anyway to reduce the chance of negative consequences. It's only 4 lines of typing. [Thanks in advance|Hope I helped you]
Exodus300
World-Wide Alliance of Evil and Twisted People
[red]"Experimentation by Example is the best learning tool" - Exodus300[/red]
[pc3]
 
It releases it from memory, thus freeing up resources. www.vzio.com
star.gif
/ [wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top