SQLServer AlwaysOn在辅助副本创建只读账号

主副本创建用户后

select sid from sys.sql_logins where name = 'srv_bi'

查询初主副本sid后,在辅助副本上

create login srv_bi with password='sqlpassword', sid=主副本查询的sid

原文地址:https://www.cnblogs.com/elontian/p/12489498.html