Solved

SQL Server - Separate Database for Reports

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

758 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

14 Experts available now in Live!

Get 1:1 Help Now