SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

yjpr
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.

-YJPR

tkizer
Almighty SQL Goddess

USA
37316 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  
 New 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.03 seconds. Powered By: Snitz Forums 2000