Click here to Skip to main content
13,861,991 members

Articles by DizZ (Article: 1, Tip/Trick: 1)

Article: 1, Tip/Trick: 1

RSS Feed

Average article rating: 2.33

Data Access
Posted: 15 Apr 2011   Updated: 15 Apr 2011   Views: 55,502   Rating: 2.33/5    Votes: 2   Popularity: 0.60
Licence: The Code Project Open License (CPOL)      Bookmarked: 0   Downloaded: 780
Shorten the amount of code needed to use a SqlDataReader
No blogs have been submitted.

Average tips rating: 0.00

Programming Tips
Posted: 14 Apr 2011   Updated: 14 Apr 2011   Views: 9,752   Rating: 0.00/5    Votes:    Popularity: 0.00
Licence: The Code Project Open License (CPOL)      Bookmarked: 2   Downloaded: 0
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"))...
No reference articles have been posted.
No projects have been posted.

Software Developer
Canada Canada
The first ever language I started with was QuickBasic and soon I switched to Borland C++ 3.0. Then I attended computer science school where I learned Cobol, Access and ASP. Now I use VB6, VB.NET, C#, ASP.NET, PHP languages with MSSQL and MySQL databases.

Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.190214.1 | Last Updated 17 Feb 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid