查找数据库镜像的同步模式
Find Synchronous Mode For Database Mirroring
发布-日期: 2015年10月7日 (评论)
Contents
中文
想要查找数据库镜像的操作模式或同步模式? 试试这个sql逻辑(logic)。
English
Want to find the operation mode or Synchronous mode of your database mirrors? Try this sql logic.
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
Build-Info
Build Quality | Build History | ||||
---|---|---|---|---|---|
Author
- 李聪明的数据库 Lee's Clever Data
- Mike的数据库宝典 Mikes Database Collection
- 李聪明的数据库 "Lee Songming"