Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Passthrough results
Message
De
07/01/2004 11:30:09
 
 
À
07/01/2004 07:50:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863999
Message ID:
00864702
Vues:
13
>Hi Bob,
>
>-------------
>Can't you just send a batch like:
>
>UPDATE whatever....
>SELECT @@error errnum, @@rowcount rowcount
>
>Which would return a cursor that contained the info?
>--------------
>
>Yes for @@rowcount without triggers,
>No for @@error because any error on UPDATE, kill the SQL batch,
>and the SELECT is not executed.
>
>Fabio

Well, if it is a fatal error, even in an SP, the batch will stop anyway.

As far as rowcount, that's true, forgot about triggers affecting that.

In this case, SQLExec will return a failure code and you can use aerror() to get the SQL error info.

BOb
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform