Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A sure fire way to prevent the odbc driver from popup ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00517139
Message ID:
00517180
Vues:
27
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform