Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connection string for DB2
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows Server 2003
Database:
DB2
Divers
Thread ID:
01231012
Message ID:
01231017
Vues:
15
Try
* Suppress ODBC error dialog
=SQLSETPROP(0,"DispWarnings",.f.)
* Suppres login dialog 
=SQLSETPROP(0,"DispLogin",3)
sqlHandler = SQLSTRINGCONNECT(your_conn_string)
IF sqlHandler < 0 
   MESSAGEBOX([No connection])
   AERROR(err_array)
   MESSAGEBOX(err_array(1,2))
   * Process this error
ENDIF
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform