As far as I read msdn there is no variable that corresponds to the -b flag of the command (on error batch abort). I found no to enable this mode inside a script when running in sqlcmd mode. Is there any to force :r filename to run in this mode, when called from SSMS?

1 Answer 1


No, you can't.

Not in the supported subset of options: http://msdn.microsoft.com/en-us/library/ms174187.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.