Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoid the SQL server ODBC screen if no connection?
Message
De
20/12/2001 04:49:21
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Avoid the SQL server ODBC screen if no connection?
Divers
Thread ID:
00596604
Message ID:
00596604
Vues:
55
If a lnHandle=SQLCONNECT("SomeDB") fails, the SQL Server ODBC driver pops up a nice little screen, giving the ability to retry.

Very cute, but in a huge installation with 100+ servers running some VFP-program unattended, this is not very practical, because the program in effect stops, and nobody'll notice it.

I'd like to handle this situation by simply writing the errror info obtained with AERROR() into the event log and gracefully exit the application.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform