Restores with T-SQL
The command to restore a database in SQL Server is aptly named RESTORE
. The RESTORE
command is similar to the BACKUP
command in that it can be used to restore a database, part of a database, or a transaction log. You restore an entire database or part of a database by using the RESTORE DATABASE
syntax. You do transaction log restores by using the RESTORE TRANSACTION
syntax.
Database Restores with T-SQL
Listing 14.6 shows the full syntax for RESTORE DATABASE
.
Once again, there are many available options for restoring a database, but a simple restore is fairly straightforward. The following ...
Get Microsoft® SQL Server 2008 R2 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.