I want to execute a batch file with multiple lines in it, similar to this:
sqlcmd -E -d R -i "DROP_UNUSEDTables.sql" -o results.txt
sqlcmd -E -d R -i "INSERT_CheckSumIgnore.sql" -o results.txt
The only thing I am missing is that I want to put a success or failure message in the results.txt, and it appears that the results.txt file is being over-written by the final command that is ran.
What am I missing?