Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Opening and Closing Connections: Opinions
Message
From
05/04/2002 15:43:29
Jason Dalio
Northern Interior Regional Health Board
Prince George, British Columbia, Canada
 
 
To
All
General information
Forum:
Visual Basic
Category:
Database DAO/RDO/ODBC/ADO
Title:
Opening and Closing Connections: Opinions
Miscellaneous
Thread ID:
00641612
Message ID:
00641612
Views:
34
I was wondering if people would like to comment on how they like to deal with connection and recordset objects. Myself, I have recently been putting a public variable in a module that is the provider string and then utilizing that variable when opening my connection object. This works fine and keeps it in one place. Up until my most recent app I hve usually just put a Conenction object at the form level and had all recordsets in procedural code use this one object. Now I am building a new app I am toying with creating and destroying connection objects within my procedural code as I go. Can anyone comment on "best practice" (if there is one) for when and how often to create connections and recordsets?
Next
Reply
Map
View

Click here to load this message in the networking platform