我將Windows Server從2008升級到2012,SQL Server從2008升級到2014 。我有一個使用BCP
命令從數據庫導出數據的進程。該命令如下:錯誤= [Microsoft] [用於SQL Server的ODBC驅動程序11]警告:帶格式文件的BCP導入會將分隔列中的空字符串轉換爲NULL
bcp "exec db_name.dbo.table_name 20160204, 0" queryout D:\myfolder\201602\20160204\output.txt -c -T -S SERVER_NAME
升級
2016-02-02 04:05:16,038 [2492] INFO -
Starting copy...
1000 rows successfully bulk-copied to host-file. Total received: 1000
升級後之前
2016-02-05 04:04:37,006 [15872] INFO -
Starting copy...
SQLState = S1000, NativeError = 0
Error = [Microsoft][ODBC Driver 11 for SQL Server]Warning: BCP import with a format file will convert empty strings in delimited columns to NULL.
1000 rows successfully bulk-copied to host-file. Total received: 1000
雖然輸出文件被創建,錯誤/警告是什麼這在日誌中是不可取的。有沒有辦法抑制這個警告?
呃。多麼愚蠢的警告信息! – Robino