Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL server connection error and popup window
Message
 
 
À
16/01/2013 15:40:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01563020
Message ID:
01563028
Vues:
80
>Hi.
>It's good to be back again!
>
>When connecting to MS SQL server or MySQL, using SQLSTRINGCONNECT,
>if the connection fails, there are two windows that appears:
>1st window: a message saying that the connection failed, bla bla bla ...
>2nd window: shows all the information of the connection, so we can change it and click OK to submit a connection request
>again.
>I think both belong to the ODBC driver. Correct?
>Question:
>Is it possible not to show all of the windows or, at least, the 2nd one if the connection fails?
>
>Thanks in advance.
SQLSETPROP(0, "ConnectTimeOut", .SQL_ConnectTimeout)
		SQLSETPROP(0, "DispWarnings", .F.)
		SQLSETPROP(0, "DispLogin", 3)  && disable login dialog if there is a problem
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform