Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Already opened DataReader
Message
From
11/03/2011 11:10:51
 
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01503339
Message ID:
01503343
Views:
32
>Everything in ADO.NET uses a DataReader. If, for example, you fill a dataset from SQLServer then a SQLDataReader is used behind the scenes.

Since the debut I have been using .NET, I open my SQL Server connection in the Application.Initialize() method and refer to it as many times as I need. This avoids opening and closing the connection for everything request. This is why it is so fast. I do the same thing either for a desktop application or a Web application. On millions of hits and SQL Server requests, I got that one about 4 times in a year.

So, is it an assumption that always using the same connection could create this situation after hundreds of thousands of SQL requests? If yes, if I open and close the connection for every SQL request, this will slow down the entire application.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform