[求助]bcp批量导入文本数据出错,请各位指点
语句:bcp czbt.dbo.cdp in D:\czbt\in\cdp001001000103.txt -f D:\czbt\db\cdp.fmt -S ZHULJ\MYSQL -U sa -P sql
-----------------------------------------------------------------
结果没有复制一条记录:
NULL
开始复制...
SQLState = 22005, NativeError = 0
Error = [Microsoft][ODBC SQL Server Driver]对于造型说明无效的字符值
NULL
已复制了 0 行。
数据包的大小(字节): 4096
时钟时间(毫秒): 共 156
NULL
-----------------------------------------------------------------
文本文件cdp001001000103.txt格式
430205001001001001,邓文孝 ,82030000119653437011, 17.99;
430205001001001002,邓文和 ,82030000119653441011, 12.11;
430205001001001003,邓光照 ,82030000119653454011, 13.30;
430205001001001004,邓光和 ,82030000119653467011, 15.12;
430205001001001005,邓文根 ,82030000119653470011, 13.30;
430205001001001006,邓文方 ,82030000119653482011, 12.74;
430205001001001007,邓文发 ,82030000119653495011, 18.55;
430205001001001008,邓元计 ,82030000119653508011, 8.75;
-----------------------------------------------------------------
格式文件cdp.fmt
7.0
4
1 SQLCHAR 0 18 "," 1 dxdm
2 SQLCHAR 0 8 "," 2 fm
3 SQLCHAR 0 20 "," 3 khzh
4 SQLCHAR 0 8 ";\r\n" 4 je