Created
December 8, 2009 09:50
-
-
Save tckz/251549 to your computer and use it in GitHub Desktop.
SQLserverのデータベースミラーリングのフェイルオーバー
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[reflection.assembly]::LoadWithPartialName("Microsoft.SqlServer.Smo") | out-null | |
$server = new-object Microsoft.SqlServer.Management.Smo.Server("プリンシパルサーバ") | |
$db = $server.Databases["mirrortest"] | |
$db.ChangeMirroringState([Microsoft.SqlServer.Management.Smo.MirroringOption]::Failover) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment