View Thread
SQL Mirroring - Fore Mirror Online (when principle dies before failing over)
|
|
admin |
Posted on 19-10-2011 13:25
|
Posts: 629 Joined: 19/11/2006 00:08 |
Say you have a mirrored database and the principle goes offline due to a sudden hardware failure, you can bring the mirror online without the need for a witness by running the following: Code Download source ALTER DATABASE <database_name> SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS Note that the ALLOW_DATA_LOSS flag has to be used, this basically means that any incomplete transactions from the principle that have not been committed yet are going to get rolled back and discarded - usually an acceptable compromise in the event of primary server failure. If you have several mirrored databases you need to bring online, you can wrap it up in a quick cursor: Code Download source SET NOCOUNT OFF Jordon Pilling | Heavencore Administrator
|
|
Jump to Forum |