Database mirroring with Real-time Reporting capabilities on mirror db

  • I am planning to have a Database mirror for our DR and use this DR for real time reporting by taking regular snapshots on mirror db.

    Can any one tell me how frequent can we take db snapshots on mirror db to match a real time reporting.

    can we write a script to delete the old snapshot and create a new one every 5min?

    Will this have any performance issues??

  • with snapshots you are never going to get real time reporting, only NEAR real time. Recreating the snapshot every 5 mins seems excessively frequent.

    Maintaining a snapshot is an overhead as you are effectively maintaining a duplicate of the database, but if this server is for DR and reporting may not be a problem.

    If you want real time reporting I suggest you look into transactional replication.

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

  • Thanks for your reply

    what is the impact if we have both mirroring and a transactional replication implemented for the same db.

  • can I refer you to this article:

    http://msdn.microsoft.com/en-us/library/ms151799.aspx

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

  • Really think about this. Everyone says they need real-time reporting, but very few people need it. Often every hour is fine.

  • Hi Sri

    What version of SQL are u using and please provide ur server details(both DB and reporting), so we can see some other options as well...:)

  • Hi,

    The SQL Version is SQL 2005 sp2

    and the reporting is a third party reporting tool that comes with the application.

  • as steve said, check with the users how 'real time' the data actually needs to be for reporting.

    If real time go for replication, if not go for mirroring with snapshots. I would not try and create new snapshots every 5 mins.

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

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

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