Not really my area of expertise, so I am a bit stuck...
I can execute a failover if both the primary and the mirror partners are available, but I can't figure out how to do a manual failover when the principal is switched off or unplugged from the network (ie fails).
I tried using:
ALTER DATABASE myMirrorDatabase SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
But this puts the db into the following state: [In Recovery]
I can't run RESTORE DATABASE because the db is configured for mirroring. So what is the proper way of doing this? Help!
Thanks in advance
Further info... (given SERVER_A with DB_A and SERVER_B with DB_B)
Initial State:
DB_A is [Principal, Synchronised], DB_B is [Mirror, Synchronised / Restoring]
I stop SERVER_A
DB_A is [offline], DB_B is [Mirror, Disconnected / In Recovery]
I run the alter database statement above:
DB_A is [offline], DB_B is [In Recovery]