Database Mirroring Or Log shipping??

  • Hello all,

    I want to maintain another database only for Reports.what is the better ways for achieving this Database Mirroring Or Log shipping??

    Please suggest best way..

    Thanks& Regards

    ------------

    swati

  • probably log shipping, but it depends For mirroring you will need to create snapshots and have enterprise edition.

    Neither are perfect though, with log shipping you will need to decide what to do when restoring logs as users will need to be kicked off. A major factor in your decision will be the latency required for the reports.

    Other options would be transactional replication or simple full database copies, if you have SQL2012 always on availability groups are good for setting up reporting databases as the mirror is readable.

    ---------------------------------------------------------------------

  • thank you for reply...

    I am using sql server 2008 R2...

  • $w@t (7/15/2013)


    thank you for reply...

    I am using sql server 2008 R2...

    Given this, what is your allowable latency for restoring the logs?

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • i need to get reports based on given values..if i enter today's date i need to get all data till today..reports can be requested any time

  • $w@t (7/16/2013)


    i need to get reports based on given values..if i enter today's date i need to get all data till today..reports can be requested any time

    Up to today or up to and including today??

    if you only need data up to today then your restore latency is a whole day and log shipping will be fine. if you need data including today then you will need to get an SLA defined to cover the log restore disconnections. Previously i have specified a 4 hourly window for log restores so the data is only ever 4 hours old

    -----------------------------------------------------------------------------------------------------------

    "Ya can't make an omelette without breaking just a few eggs" 😉

  • following on from what Perry said if you do in fact truly need up to the minute reporting you may need to look at transactional replication, its the only option that will give you that, failing an upgrade to SQL2012 and using always on.

    a possibility is not scaling out the reporting but switching to an optimistic locking level (snapshot isolation) so readers do not block writers and vice versa, would need extensive testing though.

    ---------------------------------------------------------------------

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply