简体   繁体   English

使用BCP命令运行bat文件,出现连接错误

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM