Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Connection Error
Message
From
09/06/2005 19:30:09
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00835625
Message ID:
01021985
Views:
27
>>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? :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform