G. *_*nev 3 sql-server connection-string high-availability sql-server-2012
尝试创建针对SQL Server 2012高可用性组的"只读"意图连接字符串,在本文之后,我得到:
System.ArgumentException:不支持关键字:'application intent'.在System.Data.Common.DbConnectionOptions.ParseInternal(Hashtable parsetable,String connectionString,Boolean buildChain,Hashtable synonyms definitions,Boolean firstKey)
这是在Windows 7 Pro计算机上,针对基于SQL Server 2012的高可用性组(已确认使用"-ReadOnly"参数).
有两篇关于修补程序的MS KB文章介绍了"Application Intent",但它们适用于Framework版本3.5和4.我没有找到任何4.5,所以我认为支持包括在内.两个4.5和SQL服务器本机客户端应该支持外的开箱.
我们正在使用4.5.
这是连接字符串:
Data Source=HAListener;Initial Catalog=*********;User ID=************;Password=********; Application Intent=ReadOnly
Run Code Online (Sandbox Code Playgroud)
有人遇到过这个错误吗?
已解决 应用程序意图中不应有任何空格:
ApplicationIntent=ReadOnly
Run Code Online (Sandbox Code Playgroud)
我想我会发布解决方案以防其他人遇到同样的问题:
Application和Intent之间没有空格.正确的参数是:
ApplicationIntent=ReadOnly
Run Code Online (Sandbox Code Playgroud)
(参考:MSDN)
| 归档时间: |
|
| 查看次数: |
6504 次 |
| 最近记录: |