发布-日期: 2015年10月7日 (评论)
想要查找数据库镜像的操作模式或同步模式? 试试这个sql逻辑(logic)。
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
Build Quality | Build History | ||||
---|---|---|---|---|---|
- 李聪明的数据库 Lee's Clever Data
- Mike的数据库宝典 Mikes Database Collection
- 李聪明的数据库 "Lee Songming"