Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking if SQL Server is available for connect
Message
De
10/08/2005 09:04:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Checking if SQL Server is available for connect
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01039833
Message ID:
01039833
Vues:
45
I'd like to check from VFP application if SQL server is available for connection.

I can do it with
...
wait window "Please wait..."
SQLSETPROP(0,'DispLogin',3)
MyHandle=SQLStringConnect(MyConnString)
wait clear
...
and after that I can test what in MyHandle is.

The only problem is - if server is not available - it takes too long and I'd like to do this in background even without displaying the wait window. I don't know if it is possible to set some shorter duration of SqlStringConnect command or to test the availability of the server with some other way. I played with "Connection Timeout" settings in connection string, but it doesn't work with me.


Thank's, Zlatko.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform