微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

[AlwaysOn] 创建SQL Server高可用性组T-SQL语法:BACKUP_PRIORITY参数

BACKUP_PRIORITY = n

指定此副本相对于同一可用性组中的其他副本执行备份的优先级。Specifies your priority for performing backups on this replica relative to the other replicas in the same availability group. 该值是0到100之间的整数。The value is an integer in the range of 0..100. 这些值具有以下含义:These values have the following meanings:

l   1 到100表示可以选择可用性副本执行备份。1..100 indicates that the availability replica Could be chosen for performing backups. 1表示最低优先级,100表示最高优先级。1 indicates the lowest priority, and 100 indicates the highest priority. 如果备份优先级设置为1,那么只有在当前没有更高优先级的可用性副本可用时,才选择该可用性副本来执行备份。If BACKUP_PRIORITY = 1, the availability replica would be chosen for performing backups only if no higher priority availability replicas are currently available.

l   表示此可用性副本不用于执行备份。0 indicates that this availability replica is not for performing backups. 例如,对于您从不希望备份故障转移到的远程可用性副本,这很有用。This is useful, for example, for a remote availability replica to which you never want backups to fail over.

有关详细信息,请参阅活动辅助副本:辅助副本上的备份(始终在可用性组上)。For more information, see Active Secondaries: Backup on Secondary Replicas (Always On Availability Groups).

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐