title: Running a bat file with BCP command, getting connection error
body: <p>I have a bat file that is using the <code>bcp</code> command to execute a stored procedure to a delimited file. When manually running the bat file, I get the following errors:</p>
  
  <p><img src="https://i.stack.imgur.com/0JQcv.png" alt="enter image description here"></p>
  
  <p>I'm using the <code>-T</code> parameter as I log into the database with Windows Authentication.  Is there a setting I may need to change to fix this error?</p>