Differences between Standby Vs No recovery?

Answer Posted / samba shiva reddy . m

When restoring a SQL Server Database, I notice that there are 3 different Recovery States to choose from:

Restore with Recovery
Restore with No Recovery
Restore with Standby

NORECOVERY

Instructs the restore operation to not roll back any uncommitted transactions. Either the NORECOVERY or STANDBY option must be specified if another transaction log has to be applied. If neither NORECOVERY, RECOVERY, or STANDBY is specified, RECOVERY is the default.

SQL Server requires that the WITH NORECOVERY option be used on all but the final RESTORE statement when restoring a database backup and multiple transaction logs, or when multiple RESTORE statements are needed (for example, a full database backup followed by a differential database backup).

Note When specifying the NORECOVERY option, the database is not usable in this intermediate, nonrecovered state.

When used with a file or filegroup restore operation, NORECOVERY forces the database to remain in the restoring state after the restore operation. This is useful in either of these situations:

A restore script is being run and the log is always being applied.

A sequence of file restores is used and the database is not intended to be usable between two of the restore operations.

STANDBY = undofilename

Specifies the undo file name so the recovery effects can be undone. The size required for the undo file depends on the volume of undo actions resulting from uncommitted transactions. If neither NORECOVERY, RECOVERY, or STANDBY is specified, RECOVERY is the default.

STANDBY allows a database to be brought up for read-only access between transaction log restores and can be used with either warm standby server situations or special recovery situations in which it is useful to inspect the database between log restores.

If the specified undo file name does not exist, SQL Server creates it. If the file does exist, SQL Server overwrites it.

The same undo file can be used for consecutive restores of the same database. For more information, see Using Standby Servers.

Important If free disk space is exhausted on the drive containing the specified undo file name, the restore operation stops.

STANDBY is not allowed when a database upgrade is necessary.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know what are the restrictions applicable while creating views? : SQL Server Architecture

560


how to take backup bcp out for a column in table in sql server?

1644


Can a table be moved to different filegroup?

575


What is the use of keyword with encryption.

584


what is normalization? Explain different levels of normalization? : Sql server database administration

658






How many types of built in functions are there in sql server 2012?

493


What are the types of subquery?

553


What does the on delete cascade option do?

561


what is the main function of a query parameter?

111


How to modify the underlying query of an existing view?

541


How do I find the port number for sql server?

506


How do users use Report Builder with SQL Server data sources?

119


Define right outer join in sql server joins?

522


Explain nested join?

568


Explain how does the report manager work in ssrs?

503