Sdílet prostřednictvím


Database.ChangeMirroringState Method

Changes the mirroring configuration as specified by the options.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub ChangeMirroringState ( _
    mirroringOption As MirroringOption _
)
'Usage
Dim instance As Database 
Dim mirroringOption As MirroringOption

instance.ChangeMirroringState(mirroringOption)
public void ChangeMirroringState(
    MirroringOption mirroringOption
)
public:
void ChangeMirroringState(
    MirroringOption mirroringOption
)
member ChangeMirroringState : 
        mirroringOption:MirroringOption -> unit
public function ChangeMirroringState(
    mirroringOption : MirroringOption
)

Parameters

See Also

Reference

Database Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Working with Database Objects

Database Mirroring Administration

Creating, Altering, and Removing Databases

CREATE DATABASE (Transact-SQL)