Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Applies to:
SQL Server
When a database is in the restoring state, you can use the Restore Transaction Log dialog box to restore the database to a marked transaction in the available log backups.
Note
For more information, see Use Marked Transactions to Recover Related Databases Consistently (Full Recovery Model) and Recovery of Related Databases That Contain Marked Transaction.
After connecting to the appropriate instance of the Microsoft SQL Server Database Engine, in Object Explorer, click the server name to expand the server tree.
Expand Databases, and, depending on the database, either select a user database or expand System Databases and select a system database.
Right-click the database, point to Tasks, and then click Restore.
Click Transaction Log, which opens the Restore Transaction Log dialog box.
On the General page, in the Restore To section, select Marked transaction, which opens the Select Marked Transaction dialog box. This dialog box displays a grid listing the marked transactions available in the selected transaction log backups.
By default, the restore is up to, but excluding, the marked transaction. To restore the marked transaction also, select Include marked transaction.
The following table lists the column headers of the grid and describes their values.
Header | Value |
---|---|
<blank> | Displays a checkbox for selecting the mark. |
Transaction Mark | Name of the marked transaction specified by the user when the transaction was committed. |
Date | Date and time of the transaction when it was committed. Transaction date and time are displayed as recorded in the msdbgmarkhistory table, not in the client computer's date and time. |
Description | Description of marked transaction specified by the user when the transaction was committed (if any). |
LSN | Log sequence number of the marked transaction. |
Database | Name of the database where the marked transaction was committed. |
User Name | Name of the database user who committed the marked transaction. |
Restore a Database Backup Using SSMS
Restore a Transaction Log Backup (SQL Server)
Events
31 Mar, 11 pm - 2 Apr, 11 pm
The biggest SQL, Fabric and Power BI learning event. March 31 – April 2. Use code FABINSIDER to save $400.
Register todayTraining
Documentation
Restore a SQL Server Database to a Point in Time (Full Recovery Model) - SQL Server
Restore a SQL Server Database to a Point in Time (Full Recovery Model)
Restore databases to marked transaction - SQL Server
When you make related updates to two or more related databases, use transaction marks in SQL Server to recover them to a logically consistent point.
Restore sequences (Full Recovery Model) - SQL Server
Learn how to plan and perform a restore sequence, consisting of RESTORE statements, for a SQL Server database that ordinarily uses the full recovery model.