Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A sure fire way to prevent the odbc driver from popup ?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00517139
Message ID:
00517180
Views:
26
This message has been marked as the solution to the initial question of the thread.
>I have been using the Mysql odbc driver, for months. and the only way I can get the driver not to pop up, is to create a dsn for it. however, I feel thats a bit of a hassle.
>
>I use sqlstrconnect with the proper information, the only thing missing in my connection string is the dsn. but once I create the dsn. the popup goes away...
>
>Any suggestions as to how to use this without the odbc popup from happening. ?
>
>Thanks
>Bob Lee

Bob,

Try to add folowing code before sqlstrconnect
IF SQLGETPROP(0,'DispLogin') <> 3
	= (SQLSETPROP(0,'DispLogin',3)  && No login -- error on fail
ENDIF
IF SQLGETPROP(0,'DispWarnings')
	= (SQLSETPROP(0,'DispWarnings',.F.)  && No errors
ENDIF
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform