--1、把客户的数据库服务停止,把物理文件备份出来一份,然后把后缀名为ldf删除,然后把数据库服务启动 --2、把UFwhmbyxgs2015修改成真实数据库名称,把D:T1-财贸宝系统工具Data,修改成真实的路径,把语句全部复制到management studio中,用鼠标选择一行执行一行 use master alter database UFTData614155_000001 set EMERGENCY --如果提示报错,可以直接执行下一行语句 alter database UFTData614155_000001 set single_user with rollback IMMEDIATE alter database UFTData614155_000001 Rebuild Log on (name = MyDB_log, filename = 'D:T1-财贸宝系统工具DataUFTData614155_000001_log.ldf') dbcc checkdb('UFTData614155_000001',REPAIR_ALLOW_DATA_LOSS) dbcc checkdb('UFTData614155_000001',REPAIR_REBUILD)
alTER database UFTData614155_000001 set Multi_USER