Error = [Microsoft][ODBC Driver 11 for SQL Server]Warning: BCP import with a format file will convert empty strings in delimited columns to NULL -
i upgraded our windows server 2008 2012 , sql server 2008 2014. have process uses bcp
command export data database. command below:
bcp "exec db_name.dbo.table_name 20160204, 0" queryout d:\myfolder\201602\20160204\output.txt -c -t -s server_name
before upgrade
2016-02-02 04:05:16,038 [2492] info - starting copy... 1000 rows bulk-copied host-file. total received: 1000
after upgrade
2016-02-05 04:04:37,006 [15872] info - starting copy... sqlstate = s1000, nativeerror = 0 error = [microsoft][odbc driver 11 sql server]warning: bcp import format file convert empty strings in delimited columns null. 1000 rows bulk-copied host-file. total received: 1000
though output file has been created, error/warning undesirable in log. there way suppress warning?
apparently,according microsoft not error warning , can safely ignored.(detailed discussion , work around here)
in case, parsing bcp console output string "error" , reporting process failed. since using process
class of .net framework call bcp command in c# code, had add code check process exit code 0 , suppress specific warning.
Comments
Post a Comment