Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Testing a connection
Message
 
 
À
08/12/1998 18:16:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00165359
Message ID:
00165496
Vues:
19
>Does anyone have a quick method to test a connection handle? I have looked thru the help for SQLGETPROP() and that feature is significantly missing.
>
>The only thing that comes to mind is to test for the error message in an error-handler, but if you have a better suggestion, I'd be much obliged if you'd share it.
>
>Cheers -

What do mean by test? See if it actually retrieves data? If you are still connected?

There are several SQLGetProp() parameters you can test for. One of which is DispWarnings where you could use SQLSetProp to turn off the display of error messages. You can use AErrors() function to test if an ODBC error was returned.

See the VFP help for parameters on these functions. SQLSetProp has the parameters list for the SQLGetProp function.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform