1 回答

TA貢獻(xiàn)1775條經(jīng)驗 獲得超8個贊
打開log explorer file=>attach log file->選擇服務(wù)器和登陸方式->connect->
選擇數(shù)據(jù)庫->attach->左面對話框中browse->view log->就可以看到log記錄了
想恢復(fù)的話: 右鍵log記錄 undo transation->選擇保存文件名和路徑->然后打開該文件到查詢分析器里執(zhí)行
T-sql代碼就可以了
例如 如果log是delete table where ...的話,生成的文件代碼就是insert table ....
------------------------------------------------------------------------
log explorer使用的一個問題
1)對數(shù)據(jù)庫做了完全 差異 和日志備份
備份時選用了刪除事務(wù)日志中不活動的條目
再用Log explorer打試圖看日志時
提示No log recorders found that match the filter,would you like to view unfiltered data
選擇yes 就看不到剛才的記錄了
如果不選用了刪除事務(wù)日志中不活動的條目
再用Log explorer打試圖看日志時,就能看到原來的日志
2)修改了其中一個表中的部分?jǐn)?shù)據(jù),此時用Log explorer看日志,可以作日志恢復(fù)
3)然后恢復(fù)備份,(注意:恢復(fù)是斷開log explorer與數(shù)據(jù)庫的連接,或連接到其他數(shù)據(jù)上,
否則會出現(xiàn)數(shù)據(jù)庫正在使用無法恢復(fù))
恢復(fù)完后,再打開log explorer 提示No log recorders found that match the filter,would you like to view unfiltered data
選擇yes 就看不到剛才在2中修改的日志記錄,所以無法做恢復(fù).
- 1 回答
- 0 關(guān)注
- 1443 瀏覽
添加回答
舉報