Search code examples
sql-server-2008database-backupsdatabase-restoretransaction-log

Restore all Sql server transaction log but one query?


Is there any way to restore an entire Transaction Log but one query?

for example a delete query, or update query, that you accidentally execute?

Cause i know its is posible, to restore to a certain time, but what if the evil query affected only one table, and you dont want to loose the changes in the other tables?


Solution

  • There is no way to do that using just the tools that come with SQL Server, though as you said you can come close using point in time recovery.

    I believe ApexSqlLog may allow you to do this, but I have never tested using it in that fashion. SQL Log Rescue from Red Gate also seems to allow you to do this, and whil I have used many products from Red Gate and have generally been very happy with them, I have not tried that particular product either.