• The .bat file is running a SQL query from the command line, using the following format:

    sqlcmd -S <SQL Server instance> -i <SQL query> -o <output file> -d <SQL Server database name> -h -1 -W -r 0