#6: Fixed .cmd scripts to ensure all SQL script failures are reported correctly by SQLCMD.
Also tightened up the error handling.