Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Connection Error
Message
De
09/06/2005 19:30:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00835625
Message ID:
01021985
Vues:
26
>>Is there any way to suppress the SQL Server Error #18456 dialog when the SQLCONNECT command fails?
>
* Suppress ODBC error dialog
>= (SQLSETPROP(0,'DispWarnings',.F.)  && No errors
>* Suppres login dialog
>= (SQLSETPROP(0,'DispLogin',3)  && No login dialog -- error on fail
>lnConn = SQLSTRINGCONNECT(lcConnStr )
>IF lnConn < 0
>  * Use AERROR() function to get ODBC error info
>  * Process error
>ENDIF
>
Your awesome Sergey.

That did the trick.

Do you have an answer to my MSGraph question? :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform