Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display user defined error messages with sql serv
Message
De
24/02/2000 13:48:04
 
 
À
24/02/2000 10:42:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00336637
Message ID:
00336937
Vues:
16
>could you please let me know how to intercept it in between to give user messages.

It really depends on how you're submitting data to the server. If you're using SPT, on an error SQLEXEC() should return a -1. If you're using views, the TABLEUPDATE() should fail with a .F. In both cases, AERROR() will contain SQL Server's constraint violation error. It will be up to you to translate it into something that make sense to the users.

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform