Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL server connection error and popup window
Message
 
 
To
16/01/2013 15:40:57
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01563020
Message ID:
01563028
Views:
81
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform