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