x

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?

Thanks
more ▼

asked Nov 04, 2010 at 02:37 AM in Default

elias_chatzigeorgiou gravatar image

elias_chatzigeorgiou
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, 2010 at 02:55 AM

Kev Riley gravatar image

Kev Riley ♦♦
52.7k 47 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, 2010 at 01:40 PM

KenJ gravatar image

KenJ
19.2k 1 3 11

+1 good spot didn't even see that, just read what I wanted to read!!
Nov 04, 2010 at 05:28 PM Kev Riley ♦♦
thanks for the correction, that was a typo.
Nov 05, 2010 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

By RSS:

Answers

Answers and Comments

SQL Server Central

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

Topics:

x47

asked: Nov 04, 2010 at 02:37 AM

Seen: 750 times

Last Updated: Nov 04, 2010 at 02:37 AM