By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,572 Members | 1,722 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,572 IT Pros & Developers. It's quick & easy.

what if the database connection isn't close

P: n/a


I m assuming that there's a bug in a vb.net application, and in some
cases the connections to the database are not being closed. So what
happen ? will this cause some performance issues or does the garbage
collector close the connection while disposing the connection object ?

regards

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Joe,

I never heard about a bug of that however recomended is to close or when
there is connection pooling dispose your connection, when you don't know
that, just dispose. Dispose does close as well.

I hope this helps,

Cor
Nov 21 '05 #2

P: n/a
You must manually close the connection with myConnection.close(), otherwise
the object will be released but the connection will stay open.

--
OHM ( Terry Burns )

http://TrainingOn.net

"Joe Abou Jaoude" <an*******@devdex.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...


I m assuming that there's a bug in a vb.net application, and in some
cases the connections to the database are not being closed. So what
happen ? will this cause some performance issues or does the garbage
collector close the connection while disposing the connection object ?

regards

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.