Agent Jobs

Find Other Servers In Database Mirroring Configuration

Here’s some quick SQL logic to help you find the other Mirrord Server in the SQL Server Database Mirroring configuration.

use master;
set nocount on
select
'database' = DB_NAME(database_id)
, 'state' = mirroring_state_desc
, 'mirror role' = mirroring_role_desc
, 'partner server' = mirroring_partner_name
from
sys.database_mirroring
where
mirroring_guid is not null

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s