一. Bcp 錯(cuò)誤
ct_connect(): network packet layer: internal net library error: Net-Lib protocol driver call to connect two endpoints failed
Establishing connection failed.
無法連接遠(yuǎn)程服務(wù)器
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:
導(dǎo)入表對應(yīng)的列數(shù)量不正確
cs_convert: cslib user api layer: common library error: The conversion/operation was stopped due to a syntax error in the source field.
導(dǎo)入數(shù)據(jù)存在自增長列,但數(shù)據(jù)源不存在自增長列
blk_rowxfer(): blk layer: internal BLK-Library error: Data truncated while doing local character set conversion. col = 3
導(dǎo)入表對應(yīng)的字段長度不足
ct_sendpassthru(): network packet layer: internal net library error: Net-Library operation terminated due to disconnect
CTLIB Message: - L5/O3/S5/N5/5/0:
字符集錯(cuò)誤
二. Bcp 導(dǎo)入不同字符集數(shù)據(jù)
bcp in到字符集是utf8的數(shù)據(jù)庫時(shí)使用以下的參數(shù),這樣就可以解決java程序使用utf8字符集看中文是亂碼的問題
bcp dbname..tabname in filename -Uxx -Pxx -Sxx -Jcp936 -c -Y