Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
One connection or two?
Message
 
 
To
16/08/2008 19:47:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01339295
Message ID:
01339320
Views:
11
>Same concern was in play and this use of a handle in the connectstring clause has solved most of it. There may be other problems with counting connections to a SQL server, specially when it doesn't dismiss a dropped connection - in case it may be reestablished, and when the app establishes a new one instead, for a while it counts as two.

OK, here's another question: The Help file on SQLStringConnect isn't really clear to me. It says the default for the first parameter, lShared, is false, meaning a connection created with SQLStringConnect() would not be shared by default. But when you use the alternate cConnectString as the first parameter, it's less clear what the default for the second parameter, lSharable. Do you need to explicitly use SQLStringConnect(cConnectString,.t.) to have a shared connection? I think my confulsion comes from the use of 'shared connection' in one place and 'shared data source' in another.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform