PC Review


Reply
Thread Tools Rate Thread

Re: ADO.Net and Garbage Collection

 
 
Aaron Weiker
Guest
Posts: n/a
 
      17th Mar 2004
NetNut wrote:

> Dim Cn As SQLClient.SqlConnection = New SqlCilent.SqlConnection(ConfigurationSettings.AppSettings("SQLConn"))
> CN.Open
>
> Dim Cmd As SqlClient.SqlCommand = New SqlClient.SqlCommand("@sp_Test", Cn)
>
> C.
> Cn.Close
>
> Cn = Nothing
> Cmd = Nothing


I always use C. For more information check out
http://blogs.sqladvice.com/dpenton/a...03/16/786.aspx

--
Aaron Weiker
http://blogs.sqladvice.com/aweiker
http://aaronweiker.com/

 
Reply With Quote
 
 
 
 
Aaron Weiker
Guest
Posts: n/a
 
      17th Mar 2004
Aaron Weiker wrote:

> I always use C. For more information check out
> http://blogs.sqladvice.com/dpenton/a...03/16/786.aspx
>


Yeah, I forgot to mention, I also through in a Dispose to Connection. I
program using C# so I just use the "using" statement which handles this
automatically for me.


--
Aaron Weiker
http://blogs.sqladvice.com/aweiker
http://aaronweiker.com/

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Garbage collection Alan T Microsoft Dot NET Framework 2 15th Dec 2007 07:10 PM
Garbage Collection bug? Anderas Broman Microsoft Dot NET Compact Framework 5 4th May 2004 12:51 AM
Re: Garbage collection in ASP.NET bruce barker Microsoft ASP .NET 0 9th Jan 2004 07:27 PM
Garbage collection Ralph Microsoft Windows 2000 Active Directory 5 12th Sep 2003 10:06 PM
Garbage collection Nanda Microsoft Dot NET 2 29th Jul 2003 01:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:36 PM.