Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Already opened DataReader
Message
De
11/03/2011 11:10:51
 
 
À
11/03/2011 11:03:28
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01503339
Message ID:
01503343
Vues:
33
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform