1 回答

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