Solved

SQL Server - Separate Database for Reports

Posted on 2013-05-17
4
254 Views
Last Modified: 2013-06-21
What are the advantages and disdvantage to having any reports/queries running against a (very recent) copy of your production database rather than the actual production database?  

Obviously, the data in the copy/report database will be slightly old.  But what else?  Is this a good practice?

Thanks In Advance,

- Michael
0
Comment
Question by:mjs082969
  • 2
4 Comments
 
LVL 65

Accepted Solution

by:
Jim Horn earned 250 total points
ID: 39175293
Big advantage:  Activity generated from running reports does not interfere with production users.   Especially if in addition to reports there is a lot of ETL jobs to set output files to clients.

Time required to pull this off:  Scheduled backups, dropping old reporting databases before a restore, setting everyone's expectations about outages and when what data will be made available on the reporting databases.

Disadvantage:  Space and management, but memory is cheap.   You'll also have to figure out how to handle transactions that have begun but have not been committed at the time of the backup.

>'slightly old'.
You'll need to spell out what the client feels is acceptable timing for reports.  Does yesterday at midnight work?  Monthly?  Hourly?
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 39176513
And even space is not a problem if you use a database snapshot.
0
 

Author Comment

by:mjs082969
ID: 39184991
I have not used database snapshots extensively.  Can I ask how much space they normally take, in comparison to a copy of the database?  50%?
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 250 total points
ID: 39185837
Can I ask how much space they normally take, in comparison to a copy of the database?  50%?
Initially less than 1%.
I would suggest you start by reading Tim's blog on the subject:
Capture the reporting benefits of database snapshots in SQL Server 2005
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how the fundamental information of how to create a table.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now