Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Already opened DataReader
Message
De
11/03/2011 19:44:01
 
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:
01503432
Vues:
25
>I think you may just need to check your connection.State to see if it is busy (Executing or Fetching) .

The updated version I posted is a better one. I create the connection each time, as recommended by Viv, and based on my understanding on how SQL Server can react sometimes on the same connection being reused for several hours/days/weeks, it was well proposed to adjust my code like that.

So, this eliminates the need to check for its status. I did take a look at that approach however. But, I also discovered that it was not a good one to consider. Viv also confirmed that in the other message about the fact that if it busy, there could be a situation that it cannot be closed and such.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform