Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Passthrough results
Message
From
07/01/2004 11:30:09
 
 
To
07/01/2004 07:50:48
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863999
Message ID:
00864702
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform