[英]Running a bat file with BCP command, getting connection error
I have a bat file that is using the bcp
command to execute a stored procedure to a delimited file. 我有一个蝙蝠文件,该文件正在使用
bcp
命令对分隔的文件执行存储过程。 When manually running the bat file, I get the following errors: 手动运行bat文件时,出现以下错误:
I'm using the -T
parameter as I log into the database with Windows Authentication. 在使用Windows身份验证登录数据库时,我正在使用
-T
参数。 Is there a setting I may need to change to fix this error? 是否需要更改设置以解决此错误?
需要将-S [DATABASE HOST NAME]
参数传递给bcp
命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.