用bcp倒回时,
can't allocate space for object 'BillData' in database 'policedb' because 'default'segmetn is full/has no free extents.
是policedb的空间不够吗?

解决方案 »

  1.   

    oh, ic ,
    the table billdata is creat on the default segment,
    the default segment only have 25Mhow can create an table on another segment? e.g history segment.
    the history segment has alot of space.please help!
      

  2.   

    create table testtable(...) on segment name
      

  3.   

    谢谢 flowerofwind(现实很残酷) ,
    我把第二个表在另个一个segment 重建了,
    但是导回时,提示:
    u cannot run the non-logged version of bulk copy in this database. please check with DBO.
    是不能在另个一个段做导入吗?
      

  4.   

    你看你的表里面是不是能插入数据,先用insert插入一条试试看
      

  5.   

    我刚才试了一下,发现
    用bcp倒出某一表的数据,只能还是倒回这个表,其它同样结构的表不可以,
    会提示我上面写的错误,
    是这样吗?
      

  6.   

    我用一个小表做了试验
    bcp policedb..Police out e:\\bbb.txt -U sa -P -t '\t' -c
    bcp policedb..Police2 in e:\\bbb.txt -U sa -P -t '\t' -c
    不管police2是建在哪个段上都提示
    u cannot run the non-logged version of bulk copy in this database. please check with DBO.
    但是导回到police,却好使。
      

  7.   

    那就这样吧,用sp_rename把你的原来的表改名,然后再建一个表和原来的表同名,导进去
      

  8.   

    呵呵,我试过这招了,
    建一个同结构的表,然后把表名互换了,
    也是提示不可以。现在我将这个表的数据全导到我新的表中了,然后truncate 这个表,建主键,
    正在往回呢,上帝保佑!
      

  9.   

    thanks , thanks , thanks  ,thanks  ,thanks 
    已经成功倒回去了,虽然还是不知道为什么别的表不可以,
    真是辛苦您了!