Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Passthrough results
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863999
Message ID:
00864001
Vues:
13
>I want to know if an UPDATE or a DELETE worked or not using SPT. SQLEXEC() returns 1 but I don't know if the command worked or not.

Mario,

If you're using SQL Server, then I think after the update/delete you can send a "SELECT @@ROWCOUNT" to see how many records were affected by the last command. Similarly, "SELECT @@ERROR" would return the error code of the last command (zero, if it was successful).

Laterness,
Jon
Jon Rosenbaum
Devcon Drummer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform