After much trial and tribulation today I've finally cracked how to return a non zero exit code from a call to osql back to a dos batch file. The answer is as follows. Note the bits in bold below are most important, and the use of the single & sign
Read More...