Rollback transaction using transaction log

后端 未结 4 1544
误落风尘
误落风尘 2020-12-13 15:57

Would it be possible rollback transactions using Transactionlog file for a particular record?

I am using SQL Server 2005.

4条回答
  •  半阙折子戏
    2020-12-13 16:49

    From what I know your options are ApexSQL Log (pricey but has a free trial) or undocumented SQL Server commands such as DBCC Log and fn_dblog.

    Any of these will only work if your database was in full recovery mode, in which case SQL Server stores a lot more details in transaction log.

    Also I don’t think this works for any type of transaction. I’ve seen people using this technique for reverting insert, update, delete but I’m really sure if it can be used to revert say ALTER TABLE or something like that.

提交回复
热议问题