DISK UNMIRROR Statement

Note In the future, support for SQL Server device mirroring may be discontinued. It is recommended that you use either the mirroring functionality of the Microsoft Windows NT operating system, or hardware-based mirroring if your hardware supports it. For more information about Windows NT mirroring, see the Microsoft Windows NT operating system documentation in the What's New for SQL Server 6.5.

Temporarily pauses software mirroring for the SQL Server device. Often this is useful when large nonlogged operations are occurring against the database and when a database backup (using the DUMP statement) will be performed after the nonlogged operations are completed.

Syntax

DISK UNMIRROR
    NAME = 'logical_name'
    [, SIDE = {PRIMARY | SECONDARY}]
    [, MODE = {RETAIN | REMOVE}]

where

NAME
Is the logical name of the database device that you want to unmirror.
SIDE
Indicates which device of the mirrored pair you want to disable with DISK UNMIRROR. PRIMARY refers to the original device created by DISK INIT. SECONDARY refers to the mirror device created with DISK MIRROR. The default is SECONDARY. Use the sp_helpdevice system stored procedure to display a list of all devices.
MODE
Determines whether the unmirroring is temporary or permanent. If set to RETAIN, the following conditions are true:

RETAIN is the default. RETAIN mimics what happens when failover is activated automatically. Failover occurs when the other device of the mirrored pair takes over. Set RETAIN when you plan to remirror the database device later in the same configuration.

If set to REMOVE, the following conditions are true:

Note REMOVE does not remove an operating-system file that had been used as a mirror device.

Permission

DISK UNMIRROR permission defaults to the system administrator and is not transferable.