How can we force the connection object to close?

Friday, April 8, 2011

There are 2 ways you can do this:
1. using the ExecuteReader method with "CommandBehavior.CloseConnection" parameter
2. Putting the Connection object with Using statement


www.codecollege.NET|www.interviewsguru.com|The Encylopedia of Web Sites|Blogging and Earning

0 comments

Post a Comment

LinkWithin

Blog Widget by LinkWithin

Recommended Books