应用程序意图= readonly SQL Server连接错误

时间:2017-04-21 11:39:06

标签: sql-server web-config alwayson

我想连接到包含4个不同数据库服务器的可用性组(监听器ip)。在我的连接字符串中,我指定了

application intent = readonly

以只读方式连接的属性。但它失败了

  

数据库连接错误

有两种不同的情况:

  • 当我使用数据库ip而不是监听器ip时,我可以连接到数据库

  • 当我删除application intent = readonly时,我可以连接到数据库

谁能帮帮我?

1 个答案:

答案 0 :(得分:0)

你是否尝试过没有空格的作品; “ApplicationIntent =只读”

Using Connection String Keywords with SQL Server Native Client