Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Connections
Message
From
08/01/1999 07:00:43
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, United Kingdom
 
 
To
07/01/1999 15:07:51
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
Miscellaneous
Thread ID:
00173740
Message ID:
00173954
Views:
28
>I need to know whether or not a SQL connection that is opened by a remote view is closed when the view is closed.
>
>Also, is there any way to monitor connections to the SQL Server?

Well, how about monitoring the SQLCONNECT return values. In my experience when you SQLConnect, you get a handle starting from 1, and incrementing by 1 with each concurrent connection.

So, 1) get a handle, 2) run your view, 3) get another handle and ensure that it is just the first handle + 1.

This assumes that remote views use handles in the same way as SQLConnect.
Regards
Mark

Microsoft VFP MCP
Menulib - OO Menus for VFP www.hidb.com/menulib
Previous
Reply
Map
View

Click here to load this message in the networking platform