简体   繁体   中英

How do you identify if sql server instance is an 'always on' replica?

有没有一种方法来询问一个SQL Server实例或数据库,以识别它是一个永远在线的副本?

您可以查询sys.dm_hadr_database_replica_states ,然后查看数据库是否在其中。

SELECT DB_NAME ( database_id )  , * FROM sys.dm_hadr_database_replica_states 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM