我只阅读了路由设置并且工作正常。我有一个 SQL 登录名,它使用ApplicationIntent=ReadOnly. 但是我想阻止用户访问主。
ApplicationIntent=ReadOnly
我已经看到很多关于此的主题,它们似乎都建议禁用主服务器上的登录。当我做这个连接到听众ApplicationIntent=ReadOnly失败时Login failed for user ''. Reason: The account is disabled.
Login failed for user ''. Reason: The account is disabled.
我已确保帐户是相同的 SID。
谢谢你的帮助。
sql-server availability-groups sql-server-2017
availability-groups ×1
sql-server ×1
sql-server-2017 ×1