Removing mirroring

  • can we remove database mirroring using SQL scripts.? If yes could someone please provide me the script to break the DB mirroing between Server A and Server B.

    Thanks in advance.

  • ALTER DATABASE yourDBName SET PARTNER OFF

    will break the mirror. You can run this command on either the ServerA or ServerB (Principal or Mirror).

    You'll then be left with the Mirror database in recovery mode so if you want to bring this back online use:

    RESTORE DATABASE yourDBName WITH RECOVERY

    Hope that helps.

    Julia

Viewing 2 posts - 1 through 1 (of 1 total)

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