Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connections,Transactions and DataReader
Message
 
À
15/12/2003 12:39:44
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
00859176
Message ID:
00859188
Vues:
15
Hi Bonnie,

thanks for the guess! Your idea works, I tried this before I wrote.
But I wanted to really understand whats going on. Cathies tip made it here.

Marcus

>Hi Marcus,
>
>I don't know for sure, but I'm betting that the SqlDataReader closes the connection once it's done with it (I've not used DataReaders). Your best bet is to open the connection in your UpdateData() method and close it there when you're done with it, rather than opening the connection in the SetupConnection() method.
>
>~~Bonnie
Marcus Alt
TRIA IT-Consulting GmbH
Working hard | for your success
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform