Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Supressing SQL Server error Messages From FoxPro
Message
De
22/10/2000 16:51:21
 
 
À
22/10/2000 15:59:54
Christopher Pinnock
United General Insurance Company
Kingston, Jamaique
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00432649
Message ID:
00432660
Vues:
18
>Is there a way to supress connection level windows that come up. eg. I'm trying to connect to a server that does not exist. A window will pop up after the SQLCONNECT() function is run stating the error, subsequently another window will appear which will allow me to login to the sql server directly. Is there a way to handle these errors myself and display my own errors ??

SQLSetProp(0,'DispLogin',3)
SQLSetProp(0,'DispWarnings',.f.)

You can specify these for the connection, using 0 sets the default for any new connections you create. If you are using connections, you can set these properties in the connection designer.

BOb
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform