Click here to Skip to main content
Click here to Skip to main content
Alternatives (1)

Tagged as

Go to top

Probable leak while using SqlDataReader in ADO.NET

, 5 Aug 2010
Probable leak while using SqlDataReader in ADO.NET

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

14 Apr 2011
DizZ
If you want to be sure that every object is closed, I would use this method: while (true){ Thread.Sleep(2000); using (SqlConnection objConnection = new SqlConnection(@"Integrated Security=SSPI;Persist Security Info=True;Initial Catalog=Northwind;Data Source=.;Max Pool Size=1"))...

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Vinayaka Krishna Shenoy
Architect MindTree Ltd
India India
Motivated achiever who guides organizations in applying technology to business settings, provides added value, and creates project deliverables in a timely manner. An experienced Technical Consultant, have successfully led large project teams of more than 20 people from requirements gathering to implementation and support using C#, .NET ,ADO.NET, ADO.NET Entity Framework,ASP.NET,ASP.NET MVC, WCF and SQL Server.

| | Privacy | Mobile
Web01 | 2.8.140916.1 | Last Updated 5 Aug 2010
Article Copyright 2010 by Vinayaka Krishna Shenoy
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid