Hi,
We have recently set up ReadOnly for our 2 AlwaysOn nodes (SQL 2017 CU 11). When I connect via SSMS I can successfully connect by adding the ApplicationIntent=ReadOnly in to the Additional Connection Parameters field. However, if I also specify a database name in there (Database=database_name) then I get the following error:
TITLE: Connect to Server
------------------------------
Cannot connect to servername.
------------------------------
ADDITIONAL INFORMATION:
A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 - The specified network name is no longer available.) (Microsoft SQL Server, Error: 64)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=64&LinkId=20476
------------------------------
The specified network name is no longer available
------------------------------
If I remove the ApplicationIntent then it connects and if I remove the Database= then it works. Any ideas how I can get them both working together?
Many thanks.