免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2777 | 回复: 1

BCP in 数据为什么不成功? [复制链接]

论坛徽章:
0
发表于 2008-05-24 16:05 |显示全部楼层
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 编辑 ]

论坛徽章:
0
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP