3 回答

TA貢獻1858條經驗 獲得超8個贊
您可以使用無證件
DBCC LOG(databasename, typeofoutput)
其中typeofoutput:
0: Return only the minimum of information for each operation -- the operation, its context and the transaction ID. (Default)
1: As 0, but also retrieve any flags and the log record length.
2: As 1, but also retrieve the object name, index name, page ID and slot ID.
3: Full informational dump of each operation.
4: As 3 but includes a hex dump of the current transaction log row.
例如,DBCC LOG(數據庫,1)
您也可以嘗試fn_dblog。
為了使用事務日志回滾事務,我將看一下使用事務日志的 Stack Overflow 回滾事務。

TA貢獻2039條經驗 獲得超8個贊
您無法輕松讀取事務日志文件,因為該文件沒有正確記錄?;旧嫌袃煞N方法可以做到這一點。使用未記錄或半記錄的數據庫功能或使用第三方工具。
注意:僅當數據庫處于完全恢復模式時,這才有意義。
SQL函數:
DBCC LOG和fn_dblog- 此處和此處有更多詳細信息。
第三方工具:
Toad for SQL Server和ApexSQL Log。

TA貢獻1772條經驗 獲得超8個贊
我不小心在錯誤的環境中刪除了一大堆數據,而這篇文章是我發現的第一批數據之一。
因為同時恐慌和尋找解決方案,所以我去了第一眼看到的東西-ApexSQL Logs,這是2000美元,這是可以接受的費用。
但是,從那以后,我發現Toad for Sql Server可以從事務日志中生成撤消腳本,它的價格僅為655美元。
最后,找到了一個更便宜的SysToolsGroup Log Analyzer選項,價格僅為300美元。
- 3 回答
- 0 關注
- 1206 瀏覽
添加回答
舉報