Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Connection Error
Message
 
 
À
09/06/2005 19:30:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00835625
Message ID:
01021988
Vues:
24
>>>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.

You're welcome. You wouldn't belive but you're the third person asking this question this week. :)

>Do you have an answer to my MSGraph question? :)

If I had I wouldn't keep it from you. :)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform