Randolph Potter (6/2/2009)
Nice tip, John! I'm going to use it myself 🙂
You're welcome. It is one of numerous defensive measures that I've implemented. Usually resulting from the school of "hard knocks".
Just make sure that you use the -b (on error batch abort) switch when you run your script using SQLCMD.