G
Guest
Hello -
Most of the code I see involving connections shows closing the recordset and
closing the connection immediately thereafter. I know it's important to
close everything and set it = nothing.
If I am going to be moving first, next, previous and last, the whole time
there has to be an active connection; correct? Then for the Form_Load, where
I establish the connection and retrieve the records, the connection cannot be
closed until the user is done; correct? Inserts, deletes and updates in the
meantime are closed, but all the while there is one on-going connection.
Is there a better way to do this type of thing where someone couldn't
essentially keep a connection open for an entire day?
I'm using Sql Server stored procedures.
Any input will be greatly appreciated!
Most of the code I see involving connections shows closing the recordset and
closing the connection immediately thereafter. I know it's important to
close everything and set it = nothing.
If I am going to be moving first, next, previous and last, the whole time
there has to be an active connection; correct? Then for the Form_Load, where
I establish the connection and retrieve the records, the connection cannot be
closed until the user is done; correct? Inserts, deletes and updates in the
meantime are closed, but all the while there is one on-going connection.
Is there a better way to do this type of thing where someone couldn't
essentially keep a connection open for an entire day?
I'm using Sql Server stored procedures.
Any input will be greatly appreciated!