Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Connection Error
Message
 
 
To
06/10/2003 23:56:28
Fred Wood
Madera Systems Consulting
Mill Valley, California, United States
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00835625
Message ID:
00835711
Views:
66
This message has been marked as the solution to the initial question of the thread.
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform