Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 High Availability
»
DB Mirror failover script, initiated from...
DB Mirror failover script, initiated from Mirror, fails
Rate Topic
Display Mode
Topic Options
Author
Message
Express12
Express12
Posted Monday, December 07, 2009 8:39 AM
SSChasing Mays
Group: General Forum Members
Last Login: Monday, May 20, 2013 8:31 AM
Points: 618,
Visits: 835
I setup DB Mirroring (on 2008) w/ SQLSrvr1 as Principal and SQLSrvr2 as Mirror (I did not use a witness)
When I tried to failover the DB from the Mirror server (SQLSrver2) using script:
ALTER DATABASE myDB SET PARTNER FAILOVER
... it failed.. (forget the exact msg but it said you need to be on Principal to do so) .. then I issued same script from Principal (SQLSrver1) and it worked fine.
Problem is -- when the Principal is in a disaster and not available, HOW can I failover to the Mirror without getting this error?
BT
Post #829941
steveb.
steveb.
Posted Monday, December 07, 2009 8:43 AM
SSCrazy
Group: General Forum Members
Last Login: Wednesday, May 08, 2013 7:42 AM
Points: 2,802,
Visits: 7,103
You will need to add a Witness server to get automatic failover, or you can end up in the situation where you are unable to access the Primary server in the event of a crash to initiate a manual failover
I should add that it is possible to manually force the mirror to start up when the principal is unavailable, however there can be possible data loss, it really is the same action as removing mirroring and restoring the database to a live state.
ALTER DATABASE database_name SET PARTNER FORCE_SERVICE_ALLOW_DATA_LOSS
http://msdn.microsoft.com/en-us/library/ms189977.aspx
Post #829943
« Prev Topic
|
Next Topic »
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.