+ -
当前位置:首页 → 问答吧 → sybase 15 ASE数据库带text/image字段表bcp in的问题求助,多谢各位大侠了~~~~~

sybase 15 ASE数据库带text/image字段表bcp in的问题求助,多谢各位大侠了~~~~~

时间:2011-07-11

来源:互联网

带有text、image字段的表
CREATE TABLE SIGN
(
    Logno      char(20) NOT NULL,
    Signcert   text     NOT NULL,
    Signdata  image    NOT NULL,
    Signtime  datetime NOT NULL,
)

导出脚本是
bcp $1 $2 $3 -SHQx_EBANK_DEV_2K_ASE -Uuser -Puser -n -A 4096 -b 10000

无问题,使用相同脚本导入另一个数据库的相同表,提示

Starting copy...
Text/image field is larger than the maximum value. Data truncated.
Text/image field is larger than the maximum value. Data truncated.
Text/image field is larger than the maximum value. Data truncated.
Unexpected EOF encountered in BCP data-file.
bcp copy in failed

添加了-T4194304之后也不好使。。。。依然报错,麻烦各位帮忙看一下吧。。。多谢了

作者: matrix_7   发布时间: 2011-07-11

-T4194304 才4M多,试试加大-T这个参数值

作者: andkylee   发布时间: 2011-07-11

回复 andkylee


    4m感觉也很大了。。。
  好的,我再试试~~

作者: matrix_7   发布时间: 2011-07-11

还是不好使啊。。。
我都加大到419430400了。。。

作者: matrix_7   发布时间: 2011-07-11