Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Do you check connection on every call to SQL?
Message
From
09/03/2012 14:07:58
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01537347
Message ID:
01537782
Views:
26
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform