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

avatar image

elias_chatzigeorgiou
62 6 6 7

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

2 answers: sort voted first

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

more ▼

answered Nov 04, 2010 at 02:55 AM

avatar image

Kev Riley ♦♦
64k 48 61 81

(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

avatar image

KenJ
24.6k 3 10 19

  • 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.

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:

x58

asked: Nov 04, 2010 at 02:37 AM

Seen: 876 times

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

Copyright 2016 Redgate Software. Privacy Policy