SQL Server Performance

Returning error codes from osql

Discussion in 'General Developer Questions' started by amitm79, Aug 4, 2004.

  1. amitm79 New Member

    Hi All,
    I run my .sql files using osql utility. The files are called by a program in a particular order. The problem here is that when one of my .sql files gives error it skips it and continues to the next without giving any error message in the log file (maintained by the calling utility). Is there any way i can return my error happening in osql back to the calling program. BOL says -b can be used but it can only return error if severity is greater or equal to 10. Any help on this is appreciated.


Share This Page