Microsoft SQL Server 2012 Bible
by Adam Jorgensen, Jorge Segarra, Patrick LeBlanc, Jose Chinchilla, Aaron Nelson
Pausing or Removing Database Mirroring
After configuring database mirroring, you can pause, resume, or remove database mirroring. If database mirroring impacts your applications performance, you may want to pause a database mirroring session and improve the performance. Pausing a database mirroring session causes the mirroring state to change to suspended. During this time the principal does not send any transactions to the mirror, and its principal database's transaction log keep growing, even if you schedule transaction log backups. The transaction log is not be truncated because it has to send the transactions to the mirror after the database mirroring session resumes.
To pause a database mirroring session using SQL Server Management Studio, follow these steps:
To pause the database mirroring session for the AdventureWorks database in code, connect to either the principal or mirror server and execute the following:
ALTER DATABASE AdventureWorks SET PARTNER SUSPEND;
To resume the database mirroring session for the AdventureWorks database in code, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access