Typically, when using ADO recordsets, I like to keep everything nice and tidy. So, I always end off with the following:
cnn.close
set cnn = nothing
rsRecordset.close
set rsRecordset = nothing
However, there are times when I want to keep a recordset open all the time, especially when the underlying data only changes every day or so. By doing this, the user doesnt have to generate the recordset every time they need to use it.
However, this means that I have to keep the connection and the recordset open all the time.
Given that the recordset is currently returning about 450 records (only 2 fields per record), is this bad programming? Does keeping the connection and recordset open waste resources and hog memory?
Thanks for the help!
cnn.close
set cnn = nothing
rsRecordset.close
set rsRecordset = nothing
However, there are times when I want to keep a recordset open all the time, especially when the underlying data only changes every day or so. By doing this, the user doesnt have to generate the recordset every time they need to use it.
However, this means that I have to keep the connection and the recordset open all the time.
Given that the recordset is currently returning about 450 records (only 2 fields per record), is this bad programming? Does keeping the connection and recordset open waste resources and hog memory?
Thanks for the help!