title: BCP utility:"Copy direction must be either 'in', 'out' or 'format'"
body: <p>I get below mentioned error when I run BCP command for trusted connection:</p>
  
  <blockquote>
    <p>Copy direction must be either 'in', 'out' or 'format'.</p>
  </blockquote>
  
  <p>I tried searching MSDN, where it specifies that servername passed could be incorrect.</p>
  
  <p>The command I am trying is:</p>
  
  <blockquote>
    <p>bcp %SQL_database%..TABLE1 in \FileSERVER\file.dat -f\fileserver\Formats\file.fmt -eERR.txt -m1000000 -C -T RAW -S%SQL_server%</p>
  </blockquote>
  
  <p>When I pass a username and password instead of using the <code>-T</code> option, it works. The command is executed from command prompt by passing parameters from command line.</p>