Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection best practice
Message
 
À
21/11/2002 14:23:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00725402
Message ID:
00725419
Vues:
10
This message has been marked as the solution to the initial question of the thread.
You may use
If Type('DBGetProp("myConnection","CONNECTION","DataSource")') = 'U'
    * does not exist
EndIf
Regards,
Jose

>Is there a best practice for checking if the creation of a connection is successful?
>
>Ex.
>open data myDatabase
>create connection myConnection ;
>  datasource 'myODBCConn' ;
>  userid 'myUserID' ;
>  password 'myPassword'
>
------------------
Jose Marcenaro
Tercer Planeta - Argentina
http://www.tercerplaneta.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform