Groups | Blog | Home
all groups > sql server clients > april 2005 >

sql server clients : Recovery Mode.


Rogers
4/8/2005 5:49:04 AM
I want to ask one question regarding copying the full backup, differential
and then log into another machine and
restore automatically but I want to know about the recovery mode I have to
set on that machine so that only read
and restoration can be take place and Yes I don't want to create the
disaster recovery plan.

Can anyone add his/her comments.

Hari Prasad
4/8/2005 7:54:07 AM
Hi,

Recovery model will not really matter since you are going to keep the
database in READ_ONLY mode. See the below command
to set the database to READ ONLY mode.

ALTER DATABASE <DBNAME> SET READ_ONLY

Thanks
Hari
SQL Server MVP


[quoted text, click to view]

John
4/9/2005 1:00:28 AM
So, in the read only mode we can restore the database right...

[quoted text, click to view]

Hari Prasad
4/10/2005 8:34:09 AM
Hi John,

Yes, But while restoring you must use STANDBY (undo file name) file name in
RESTORE DATABASE and RESTORE LOG command.

eg:-

RESTORE DATABASE TESTDB FROM DISK='d:\backup.bak' with
standy='d:\stanby.fil'

After this you could start restoring the Transaction logs based on a
frequency. To load the transaction logs you could use the below command

RESTORE LOG TESTDB FROM DISK='d:\backuplog.bak' with standy='d:\stanby.fil'

Thanks
Hari
SQL Server MVP

[quoted text, click to view]

AddThis Social Bookmark Button