Mirror - High Protection

Hello, I have a database mirroring setup (High availability option) in a production system.

Can I use the syntax:

ALTER DATABASE mydb SET PARTNER = 'TCP://new_witness'

To change the current witness server (old_witness) to another server (new_witness)?

Do I need to do anything else? Would that affect mirroring?

more ▼

asked Nov 04 '10 at 02:37 AM in Default

elias_chatzigeorgiou gravatar image

62 6 6 7

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

As discussed [here][1], you only have one witness, so yes ALTERing the database properties should change the existing witness.

[1]: http://ask.sqlservercentral.com/questions/2478/number-of-mirroring-witnesses-allow
more ▼

answered Nov 04 '10 at 02:55 AM

Kev Riley gravatar image

Kev Riley ♦♦
50.7k 43 49 76

(comments are locked)
10|1200 characters needed characters left
To change the witness, you'll want to use SET WITNESS rather than SET PARTNER
more ▼

answered Nov 04 '10 at 01:40 PM

KenJ gravatar image

19.1k 1 3 11

+1 good spot didn't even see that, just read what I wanted to read!!
Nov 04 '10 at 05:28 PM Kev Riley ♦♦
thanks for the correction, that was a typo.
Nov 05 '10 at 01:52 AM elias_chatzigeorgiou
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Nov 04 '10 at 02:37 AM

Seen: 680 times

Last Updated: Nov 04 '10 at 02:37 AM