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

Click here to load this message in the networking platform