mirroring

  • how to access mirror database any one can explain

  • You can not access it directlty as it is set to no-recovery.

    You could failover to the mirror and then look at it there , but since it is a mirror it will look exactly like the principal.

  • reddy.rasimpalli (8/6/2010)


    how to access mirror database any one can explain

    As Steve mentioned, you can not directly access a mirror database, it will not allow any connections. However, you can create a snapshot of the mirror database, can execute some SELECT query on that.

    Thanks & Regards,
    Sudeepta.
    http://twitter.com/skganguly

  • You can create a snapshot of the mirrored DB and run query against the snapshot. You can create snapshot only and only if both the DB principle and mirror are in sync

  • And, if you want do make it read-write, you need to break the mirroring and as mirror database is in no recovery mode, you need to issue the following command to bring it online.

    use master

    go

    RESTORE DATABASE <database_name> WITH RECOVERY;

Viewing 5 posts - 1 through 4 (of 4 total)

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