SQL Server Developer Center > SQL Server Forums > SQL Server Replication > Is it possible to run replication on a SQL 2005 DB which is also mirrored principal server?
Ask a questionAsk a question
 

QuestionIs it possible to run replication on a SQL 2005 DB which is also mirrored principal server?

  • Wednesday, October 28, 2009 12:46 PMIainH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    We have a client that currently has a large busy database that they back up using database mirroring. As part of a reporting requirement we need to use some of the data stored in the database to run reports against but we cannot access the data directly. The client also want their data to be as up to date as possible.

    Is it possible for us to run transaction replication on that server to get our data while it is running database mirroring at the same time? We were planning to use a SQL 2008 database to store this data on. If this is possible would there be any issue with the SQL 2008 subscriber taking data off a SQL 2005 publisher while it is configured for mirroring?

All Replies

  • Wednesday, October 28, 2009 1:00 PMHilary CotterMVP, AnswererUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You can run transactional replication off the principal but not the mirror.

    You can also run database snapshots off the mirror if you are running Enterprise Edition there and report off it.

    Hilary
    looking for a book on SQL Server replication? http://www.nwsu.com/0974973602.html looking for a book on SQL Server 2008 Administration? http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search? http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941
  • Wednesday, October 28, 2009 1:28 PMIainH Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Hilary.

    I was just concerned that the use of 2 different types of database replicating processes would cause some kind of conflict.

    I don't think the client's mirrored server is the enterprise edition unfortunately, but as long as we can have an up to date replication of their mirrored principal server then we that should fulfill their requirements regarding reporting.
  • Tuesday, November 03, 2009 9:16 PMantxxxx Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    You can replicate a mirrored database, you just need to set the failover partner property of the log reader and snapshot agents to be the mirror server.
    However it is not possible to have a mirrored subscriber

    Anthony