A. Use the RAISERROR command with the following criteria :-
- Run ISQL with the -b option
- Set the message severity to greater than 10
- Set the message state to 127
i.e.
isql -E -Q"RAISERROR ('set errorlevel 11',11,127)" -b if errorlevel 11 goto failed
0 comments
Hide comments