ADO.Ne tConnection object.....

  • Thread starter Thread starter Abhram Jose
  • Start date Start date
A

Abhram Jose

I am using ADO.NET objects in my ASP.Net application.
I am using SQL Server connection object. Is it required to use set My
connectionObject = Nothing for ADO.Net ?
I am closing the connection using Close Method.
Thanks,
Abhram Jose
 
No, strictly it's not necessary as long as you're calling the close method.
The garbage collector will get around to deallocating it from memory
sometime after it goes out of scope.
 

Ask a Question

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.

Ask a Question

Back
Top