不小心用了 Convert() 将数据库中的 text 字段截短了,怎么样才能恢复?
用了 LogExplorer,可是不知道具体怎么操作,谢谢!

解决方案 »

  1.   

    使用工具是LogExplore,(下载地址:http://five.ttdown.com/L/Log%20Explorer%20for%20SQL%20Serverv%20v3.21.KG.exe)安装后打开log explorer file=>attach log file->选择服务器和登陆方式->connect->
    选择数据库->attach->左面对话框中browse->view log->就可以看到log记录,
    点击“View DDL Commands”里面就有很多drop table 命令
    点击下面的“undo”按钮是生成表结构的语句(create table ....)
    点击下面的“Salvage”按钮是生成插入语句的(insert into ...values....)
      

  2.   

    有数据库备份吗?若有,请先恢复完全数据库备份,再恢复事务日志。
    注意:在恢复事务日志时,恢复到某一个时刻(即在执行Convert操作之前)即可。
      

  3.   

    用 LogExpoler 连接到数据库后,弹出提示
    waring:log contains recycled data only!
    your log contains only recycled data
    this data exists temporarily until SQL server overwrites it with new information.
    this condition is due to one of the following reasons:
    your log has truncate log on checkpoint option set to true 
    your database has never been backed up
    your log was truncated by dump transaction with no_log
    这是什么原因?
      

  4.   

    LogExpoler我也不熟悉(我们的数据库有备份策略,所以如果发生意外,我们通常都是重做事务),所以我帮不了你了。
        希望高手给予解答!现在我能做的,就是帮你把帖子顶上去了...
      

  5.   

    open logexploer 
    then f1如果你表里面有trigger 要小心