dump transaction DB with no_log

解决方案 »

  1.   

    收缩数据库pubs日志的方法:
    DBCC SHRINKDATABASE(pubs)
    BACKUP LOG pubs WITH TRUNCATE_ONLY
    还可以使用sp_detach_db卸载数据库,然后删除该数据库的日志文件,再用sp_attach_single_file_db装载数据库。
      

  2.   

    还有一个办法,dbcc shrinkfile,找到logfile的id然后再使用它。
      

  3.   

    老日志在哪呀?
    dbcc shrinkfile 出错
    An incorrect number of parameters was given to the DBCC statement.