The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

In a functioning V12 HA setup, the following queries consistently show MirrorServerState as NULL:

-- On primary...

SELECT DB_PROPERTY ( 'MirrorRole' ) AS a, 
       DB_PROPERTY ( 'MirrorServerState' ) AS b,  
       DB_EXTENDED_PROPERTY ( 'MirrorServerState' ) AS c, 
       DB_PROPERTY ( 'MirrorServerWaits' ) AS d, 
       DB_PROPERTY ( 'MirrorState' ) AS e;

a,b,c,d,e
'primary',,,'0','synchronized'

-- On secondary (mirror)...

SELECT DB_PROPERTY ( 'MirrorRole' ) AS a, 
       DB_PROPERTY ( 'MirrorServerState' ) AS b,  
       DB_EXTENDED_PROPERTY ( 'MirrorServerState' ) AS c, 
       DB_PROPERTY ( 'MirrorServerWaits' ) AS d, 
       DB_PROPERTY ( 'MirrorState' ) AS e;

a,b,c,d,e
'mirror',,,'0','synchronized'

asked 21 Aug '10, 15:42

Breck%20Carter's gravatar image

Breck Carter
26.6k418575824
accept rate: 21%

edited 22 Aug '10, 22:34

Calvin%20Allen's gravatar image

Calvin Allen
1.5k232638


The second parameter to db_extended_property should be the name of a server, and the property value will indicate the state of that server.

See the docs on db_extended_property (Note: bit.ly redirect to dcx.sybase.com)

permanent link

answered 22 Aug '10, 01:02

Graeme%20Perrow's gravatar image

Graeme Perrow
8.3k369106
accept rate: 52%

Comment Text Removed
Your answer
toggle preview

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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×404
×37

question asked: 21 Aug '10, 15:42

question was seen: 690 times

last updated: 22 Aug '10, 22:34