现在的位置: 首页 > 综合 > 正文

bcp 问题总结

2013年06月29日 ⁄ 综合 ⁄ 共 829字 ⁄ 字号 评论关闭

一. Bcp 错误

ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed
Establishing connection failed.
无法连接远程服务器

cs_convert: cslib user api layer: common library error: The conversion/operation was stopped due to a syntax error in the source field.
CSLIB Message: - L0/O0/S0/N36/1/0:
导入表对应的列数量不正确

cs_convert: cslib user api layer: common library error: The conversion/operation was stopped due to a syntax error in the source field.
导入数据存在自增长列,但数据源不存在自增长列

blk_rowxfer(): blk layer: internal BLK-Library error: Data truncated while doing local character set conversion. col = 3
导入表对应的字段长度不足

ct_sendpassthru(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
CTLIB Message: - L5/O3/S5/N5/5/0:

字符集错误

二. Bcp 导入不同字符集数据

bcp in到字符集是utf8的数据库时使用以下的参数,这样就可以解决java程序使用utf8字符集看中文是乱码的问题
bcp dbname..tabname in filename -Uxx -Pxx -Sxx -Jcp936 -c -Y

 

抱歉!评论已关闭.