Agent Jobs

Find Synchronous Mode For Database Mirroring

Want to find the operation mode or Synchronous mode of your database mirrors? Try this sql logic.

 use master;
set nocount on

select
[server] = @@servername
,	[database] = upper(db_name(sdm.database_id))
,	[synchronous_mode]	= case sdm.mirroring_safety_level_desc
when 'full'	then 'SYNCHRONOUS	- HIGH SAFETY'
when 'off'	then 'ASYNCHRONOUS	- HIGH PERFORMANCE'
else 'Not Mirrored'
end
from
master.sys.database_mirroring sdm
where
db_name(sdm.database_id) not in ('tempdb')
order by
@@servername, [database] asc

[/end]

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