I have a list of sql files executing thru SQLCMD in batch file.
The batch file (.bat) file contains below sample script:
SQLCMD -i master.sql
master.sql contains
:r script1.sql
:r script2.sql
If any error occurs in script1, I need to proceed with script2 but it stops at script1 with an error msg. How can I resolve this?