Solved

SQL 2008 Witness

Posted on 2011-09-22
2
248 Views
Last Modified: 2012-05-12
Hi All,

I am checking over a customers databases, they have several hosted set and mirrored with a witness sitting inbetween.

Two questions:
1) How do I view the status of the witness, when I log into the SQL instance of said witness I cannot see any direct information - or is this set up from the principal?

2) When I go onto the mirror all the databases have "mirrored synchronised / restoring" next to them, is this normal?  Are they in a state ready for switch over by the witness?

Thanks
0
Comment
Question by:techmiss
2 Comments
 
LVL 15

Accepted Solution

by:
Anuj earned 500 total points
ID: 36579635
1.To view the status of witness

SELECT mirroring_witness_name, mirroring_witness_state,mirroring_witness_state_desc
FROM sys.database_mirroring

2. This is quite normal behavior, says that the mirror is almost synchronized with the principal server and the changes from principal server is being applied to the mirror. As long as the transaction safety is set to FULL automatic and manual failover is possible and if the transaction Safety is off there is a chance of data loss.

See more on Mirroring states
0
 

Author Closing Comment

by:techmiss
ID: 36579713
Usefull query, thanks!
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
2016 SQL Licensing 7 41
convert null in sql server 12 34
Sql Server group by 10 30
Connecting to multiple databases to create a Dashboard 5 26
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question