Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

closing connections (sql client)

Status
Not open for further replies.
Joined
Jul 29, 2005
Messages
136
Location
PT
Hello,

If I close a connection and then make a dispose after that, will the connection pool mechanism works fine?

And if I lose the same connection more than one time? It strange that an error will not be thrown... why?

Thank you
 
I'm not sure what you're getting at, but disposing of the connection will call Close() and closing the connection will have it reclaimed in the connection pool.

Out of curiosity, do you know about "using" statements?


MCP, MCTS - .NET Framework 2.0 Web Applications
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top