问题描述
我的BCP问题使我发疯,尽管看了很多其他文章,我也看不到解决方案。
我有一个相当长的存储过程,试图从Windows 10计算机上调用以存储到CSV文件中。有些工作,有些则没有
正在运行(Windows 10,BCP版本11.0.2100.60):
BCP "exec <db>.dbo.andy" queryout test.csv /S <server-ip> /c /t; /T /v /r 0x0A
BCP - Bulk copy Program for Microsoft sql Server.
copyright (C) Microsoft Corporation. All Rights Reserved.
Version: 11.0.2100.60
Starting copy...
sqlState = S1000,NativeError = 0
Error = [Microsoft][ODBC Driver 13 for sql Server]Warning: BCP import with a format file will convert
empty strings in delimited columns to NULL.
997 rows copied.
Network packet size (bytes): 4096
Clock Time (ms.) Total : 578 Average : (1724.91 rows per sec.)
不起作用(Windows 10,BCP版本11.0.2270.0):
BCP "exec <db>.dbo.andy" queryout test.csv /S <server-ip> /c /t; /T /v /r 0x0A
BCP - Bulk copy Program for Microsoft sql Server.
copyright (C) Microsoft Corporation. All Rights Reserved.
Version: 11.0.2270.0
Starting copy...
sqlState = 01000,NativeError = 7412
Warning = [Microsoft][ODBC Driver 11 for sql Server][sql Server]OLE DB provider
"Microsoft.ACE.OLEDB.12.0" for Linked Server "TEMP" returned message "Unspecified error".
sqlState = 37000,NativeError = 7303
Error = [Microsoft][ODBC Driver 11 for sql Server][sql Server]Cannot initialize the data source
object of OLE DB provider "Microsoft.ACE.OLEDB.12.0" for Linked Server "TEMP".
sqlState = S1000,NativeError = 0
Error = [Microsoft][ODBC Driver 11 for sql Server]Unable to resolve column level collations
BCP copy out Failed
链接服务器“ TEMP”是指向本地存储在sql Server上的CSV文件的链接服务器(在Windows Server 2016上运行的sql 14.0.3257)
任何想法表示赞赏!
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)