title: Executing a SQL Server Script from a batch file
body: <p>I have a script that I need to execute using a batch file.  Do I use SQLCMD in the batch file to run the script?  Also, the script inserts data to a table in a database.  How should I format the SQLCMD in the batch file so it knows what database it is suppose to work with?</p>