ustcboy 发表于 2008-05-24 16:05

BCP in 数据为什么不成功?

D:\sybdata>bcp device.dbo.monacc_copy in monacc_copy -Sthinkpad-Usa -PPassword-c -Jcp850
CTLIB Message:- L5/O3/S5/N4/5/0:
ct_connect(): network packet layer: internal net library error: Net-Lib protocol
driver call to connect two endpoints failed
Establishing connection failed.

---背景----
数据为aix(sybase11.5)
bcp device.dbo.monacc_copy out monacc_copy -Sdb-Usa -PPassword   -c      //成功

目的win(sybase11.5)
bcp device.dbo.monacc_copy in monacc_copy -Sthinkpad-Usa -PPassword   -c -Jcp850   //不成功,去掉-Jcp850也不行,确定两边字符集一致
CTLIB Message:- L5/O3/S5/N4/5/0:
ct_connect(): network packet layer: internal net library error: Net-Lib protocol
driver call to connect two endpoints failed
Establishing connection failed.

[ 本帖最后由 ustcboy 于 2008-5-24 16:09 编辑 ]

ustcboy 发表于 2008-05-24 16:27

已经调好,是参数的原因,在win下不用设置机器名
bcp device.dbo.monacc_copy in monacc_copy[ -Sthinkpad]-Usa -PPassword   -c -Jcp850

bcp device.dbo.monacc_copy in monacc_copy   -Usa -PPassword   -c
页: [1]
查看完整版本: BCP in 数据为什么不成功?