Ofirb


Hi All,

i am working with database mirroring and i need to be able to determine which database will be principal.

for example if server A is principle and server B is mirrored and server A is down, then server B take owner and become principle, after fixing server A i want it to be principle again,

is it possible





Re: need to determine which db is pricipal

Ofirb


Hi,

i find the solution !!!!

on the mirroring properties just push on FAILOVER !!!!

WELL DONE BILL







Re: need to determine which db is pricipal

agustin_m

I would like to do the same thing, can you please explain your solution Thanks!

-Agustin







Re: need to determine which db is pricipal

Deepak Rangarajan

hey i did the following....Srv 1 was principal and Srv 2 was mirror....i just stopped sql services in principal and it immediately failed over to mirror coz i was having witness server......now the original principal became new mirror and original mirror became new principal...again inorder to revert back to original state i went to the db properties of the new principal and clicked failover ......immediately the new mirror reverted to original principal and new principal became original mirror........the same can also be done using T-SQL statements......sounds cool.........

Alter database DBName

set partner failover

run it you'll get it.........