Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Script Library
 Refresh the MS SQL Server 2000 Server database eve
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

1 Posts

Posted - 02/22/2006 :  18:44:39  Show Profile  Reply with Quote
I am currently refreshing the Reporting Server Database from Production database(size 200mb) every night by using backup and restore as follows:

Restore Database ProjectDB from disk = 'D:\MSSQL\BACKUP\RptBak\ProjectDB.bak'
with move 'ProjectDB_log' to 'd:\Mssql\Data\ProjectDB.ldf',
move 'ProjectDB_data' to 'd:\Mssql\Data\ProjectDB.mdf'

I usually take Transaction Log Backup from Production every hour everyday.

I am planning to apply the transaction log every hour on Distination Server Database (7am to 9pm). Is it right way of doing it?

I am confused whether to use WITH RECOVERY OR WITH NORECOVER while restoring a database.

I am getting errors(Msg 4306) when applying the log.

Can anyone help me how to apply incremental transaction log to the restored database(step by step)?

Appreciat your help.


Almighty SQL Goddess

38200 Posts

Posted - 02/22/2006 :  18:47:02  Show Profile  Visit tkizer's Homepage  Reply with Quote
In order to apply tlogs, you must be in NORECOVERY mode or STANDBY mode. If you use STANDBY mode, the second database will at least be available in read-only mode. With NORECOVERY mode, no one can connect to it.

I'd recommend using transactional or snapshot replication for your reporting database instead of backups.

Tara Kizer
aka tduggan

Edited by - tkizer on 02/22/2006 18:50:26
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000