0
EXEC xp_cmdshell 'bcp "select *  from 
CRM_V7_REF_MBC_V3_25_Jan_2012.dbo.MBC_CONSUMER_INF" QUERYOUT 
"\\192.168.5.135\Temp Share\\DataWithParams.csv" -c -t$ -r#  -T -S192.168.5.170'

得到下面提到的错误:

SQLState = S1000, NativeError = 0
Error = [Microsoft][SQL Server Native Client 10.0]Unable to open BCP host data-file
NULL

我能够在本地机器上生成文件。

4

0 回答 0