= nothing?

cBarry263

Active member
Joined
Oct 29, 2005
Messages
42
Location
Maryland
Programming Experience
Beginner
I am writing a program that polls a database every 60 seconds. Do saying things like objDataAdapter = Nothing, objDataSet = Nothing actually do anything? And is this the proper way to free up these objects so the next time I poll the database (done with a timer1_elapsed method) these objects do not have values stored to them?
 
if you close the connection, the dataadapters loose their dependency on the database, so all you have to do is clear the dataset:

Connection.Close()
dsDataSet.Clear()
 
Back
Top