Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Connections
Message
De
08/01/1999 07:00:43
Mark Hall
Independent Developer & Voip Specialist
Keston, Kent, Royaume Uni
 
 
À
07/01/1999 15:07:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Divers
Thread ID:
00173740
Message ID:
00173954
Vues:
29
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform