Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

No, you can't.

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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