Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Do you check connection on every call to SQL?
Message
De
09/03/2012 14:07:58
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01537347
Message ID:
01537782
Vues:
25
>Thank you for the suggestion. I will read on how to use Using/End using (new syntax to me).

You simply need to take the sample I provided and adjust as necessary. The first line will be adjusted for your connection string. oCommand and oDataAdapter are simply properties names as per their class. So, their declaration is as follow:
        Private oCommand As IDbCommand = Nothing
        Private oDataAdapter As IDbDataAdapter = Nothing
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