Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

Cannot connect to ReadOnly when database is specified

$
0
0

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.



Viewing all articles
Browse latest Browse all 4532

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>