免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2837 | 回复: 5
打印 上一主题 下一主题

bcp in导入问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-27 10:28 |只看该作者 |倒序浏览
当导出表文件比较大的时候,导入时会报错,不知用什么办法能解决?
附:
1\表文件大小在60M左右
2\sybase ASE版本12.5
3\tempdb空间已经扩展
4\导入前日志已经清空

论坛徽章:
0
2 [报告]
发表于 2006-03-27 11:09 |只看该作者
bcp out 不会写日志,和tempdb的大小也没多大关系!

bcp in 的时候,是写日志的!就要看你具体报什么错了?

论坛徽章:
0
3 [报告]
发表于 2006-03-29 10:12 |只看该作者
报错如下:
Starting copy...
CSLIB Message:  - L0/O0/S0/N36/1/0:
cs_convert: cslib user api layer: common library error: The result is truncated
because the conversion/operation resulted in overflow.

642 rows copied.
Clock Time (ms.): total = 22000  Avg = 34 (29.18 rows per sec.)

请问是不是没有完全导入?

论坛徽章:
0
4 [报告]
发表于 2006-03-29 22:11 |只看该作者

用-b参数试试

在bcp in时加参数-b 10000分块导入试试,-b参数后的值你可以改改,默认是1000,即1000条记录为一块。

论坛徽章:
0
5 [报告]
发表于 2006-03-30 09:28 |只看该作者
感谢楼上兄弟~~
我试试!

论坛徽章:
0
6 [报告]
发表于 2006-03-30 12:14 |只看该作者
What's your version?
Did you use the original file from bcp out?  I guess data in BCP file was not matching with datatype in the table.
The row is not inserted if the column is defined as greater than 255 and the value is longer than the column width. Expected the message to be generated, the data truncated and then inserted.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP