title: SQL Script Command Line Arguments
body: <p>Is there a way to get a script file that will be executing via SQLCMD to accept the parms passed in the SQLCMD call.. </p>
  
  <p>ie.. </p>
  
  <p>SQLCMD (assume the connection is OK..) -V "1/25/2012" -i "ScriptFile.sql"</p>
  
  <p>What would the structure of ScriptFile.sql Look like? Would it start with the same as any other procedure..?  </p>
  
  <p>Basically I'm trying to call a text file script with parameters as an SQL command.  So far I haven't been able to find any MSDN articles on this one.   </p>