SQL Server emergency? Email pinal@sqlauthority.com with URGENT in the subject line.

Mirrored Database: Move Files Without Breaking Mirroring

To move the files of a mirrored database, change the file paths on the principal with ALTER DATABASE, stop both instances, move the files, and start them again in the right order. This post tests the T-SQL steps on a demo database and describes the mirroring steps from the documented behavior. It also covers what to check afterward.

Continue Reading