J
John J. Hughes II
Is there a way of resetting the SqlConnection with closing/opening it again.
I am not seeing anything called reset.
Regards,
John
I am not seeing anything called reset.
Regards,
John
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
John J. Hughes II said:Basically I opened a connection and leave it open forever which normally
works fine. Before using the connection each time I checked the
connection state and if it is anything besides open I closed the
connection and reopened it.
PS said:You are best to close the connections when you are finished with them and
open them only if necessary. Why do you close and reopen a connection if
it is already open?
You are best to close the connections when you are finished with them and
open them only if necessary. Why do you close and reopen a connection if
it is already open?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.