Solved

SQL Server - Separate Database for Reports

Posted on 2013-05-17
4
255 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SQL Server 2012 r2 - Varible Table 3 25
convert null in sql server 12 34
Query to capture 5 and 9 digit zip code? 4 22
SQL Function NOT ROUND 9 10
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

803 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