How to Remove SQL Server Database Mirroring

Transact-SQL:
To remove a SQL Server database mirroring session using T-SQL, run this code from either database mirroring partner:

ALTER DATABASE [Database_Name] SET PARTNER OFF

SQL Server Management Studio:
To remove a SQL Server database mirroring session from SQL Server Management Studio:

Connect to the principal server instance -> Right-click the database -> select Tasks -> click Mirror:

database_tasks_mirror

Click Remove Mirroring:

mirroring_remove

Click 'Yes' to confirm:

mirroring_remove_confirm

If the post helped you, please share it:
Pin It

1 comment to How to Remove SQL Server Database Mirroring

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">