title: Executing a bat file inside a Stored Procedure using SQL server 2005
body: <p>When i try to execute a bat file using xp_CMDShell, i am getting a message as not recognized command.</p>
  
  <p>Following is the command i executed: </p>
  
  <pre><code>EXEC master..xp_CMDShell 'C:\Documents and Settings\adcxqcv\Desktop\PQA\sample.bat' 
  </code></pre>
  
  <p>I got a message as follows:</p>
  
  <pre><code>'C:\Documents' is not recognized as an internal or external command,
  operable program or batch file.
  NULL
  </code></pre>
  
  <p>Any Suggestions. Let me know how to execute a bat file inside a Stored Procedure.
  I am new to SQl Server.</p>
  
  <p>Thanks,
  Vinu</p>