RESTORE LOG
You do that with the last log or - if you have already restored the last log with STANDBY, just go with:
RESTORE DATABASE MYDB WITH RECOVERY
--
Tom
----------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
http://www.pinnaclepublishing.com/sql
..
After applying all the transaction logs in STANDBY mode, do I have to apply with RECOVERY option ?? as this option wont allow applying further transaction log..
"Tom Moreau" <tom@dont.spam.me.cips.ca> wrote in message news:OhAKUE8dDHA.748@TK2MSFTNGP10.phx.gbl...
When you use STANDBY, you also need to specify a filename for the file into which it will store information for (temporarily) rolling back transactions. When you go to restore the next log, it looks in this file and rolls forward (sort of) the transactions that were previously rolled back. This puts the database in a position to receive the next log. So, you should have something like:
RESTORE LOG MYDB
FROM DISK = 'D:\MSSQL7DBfiles\MYDB_TR090903_09.TRN'
WITH STANDBY = 'C:\Temp\MYDB.tmp'
--
Tom
---------------------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada http://www.pinnaclepublishing.com/sql
"Shamim" <shamim.abdul@railamerica.com> wrote in message news:OVrouA8dDHA.1588@TK2MSFTNGP12.phx.gbl...
Thanks for the reply.
When I tried
RESTORE LOG MYDB
FROM DISK = 'D:\MSSQL7DBfiles\MYDB_TR090903_09.TRN'
WITH STANDBY
I am getting an error message ,
Server: Msg 155, Level 15, State 1, Line 3
'STANDBY' is not a recognized RESTORE option.
I checked in help files, it says - STANDBY = undo_file_name
do I have to give my log file name after STANDBY ?? Pls explain
Also ,do I need to restore complete backup using STANDBY option , before
applying transcaction log in STANDBY
Thanks Sh
"Narayana Vyas Kondreddi" <answer_me@hotmail.com> wrote in message news:%23zUVp67dDHA.3592@tk2msftngp13.phx.gbl...
|