Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2004

    Unhappy Unanswered: Passig results of @@error to shell

    Does anyone know how to pass the results of @@error to a shell script as a variable?

  2. #2
    Join Date
    Feb 2003
    What is your method for invoking SQL from shell scripts? If you can provide a few details about that, i might have some suggestions.

    I wrote a C program that uses ct-lib to submit database commands from the shell environment, and return status explicitly returned by procedures/commands are returned to the shell via the return statement in the C program.

    The problem is that @@error can have more values than the $? shell variable can handle. $? can deal with values 0-255, where @@error can be the range of signed int values.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts