Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to know if Connection is working ?
Message
 
À
14/06/2003 22:20:40
Peter Wagner
Point Informática Ltda.
Limeira, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00800168
Message ID:
00800241
Vues:
22
Hi Peter,
For details check sqlconnect() help.
SQLSTRINGCONNECT( ) returns a positive nonzero numeric value as the statement handle if you successfully connect to the data source. SQLSTRINGCONNECT( ) returns –1 if it cannot make the connection.
>I need to know if a connection from VFP to SQL server is working before calling SP.
>Does someone knows how to do this ?
>I'm creating a Connection using SqlStringConnect() to the server.
>
>Would like to do something like Ping to the server to test the active connection.
>
>I know that I could create another connection using SQL-DMO to test and then close this connection before calling Stored Procedures using the first connection of the app, but I would like to test the connection using only one connection.
>
>Thanks in Advance.
>
>Peter
--
--
Aashish Sharma
Tele Nos: +1-201-490-5405
Mobile: +91-9821053938
E-Mail:
aashish@aashishsharma.com
write2aashish@gmail.com

You better believe in yourself... if you don't, who else will ?
TODAY is a gift, that's why it's called PRESENT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform