Hi all my DBA has setup a primary myNodeA
and secondary node myNodeB
and I'm trying to access the secondary node using "ApplicationIntent=ReadOnly" in JDBC connection string.
The problem we are facing is it redirects to just a server name and not a fully qualified domain name.
is there a setting or configuration in SQL Server to achieve this?
For example using that parameter redirects to myNodeB
server name only
This needs to redirect to myNodeB.myDomain.com
Best Answer
My initial suspicion is that the initial setup didn't include the fully qualified name, but check for certain with the following statement:
The query was gratuitously lifted from this MSDN blog: https://blogs.msdn.microsoft.com/alwaysonpro/2014/01/22/modifying-alwayson-read-only-routing-lists/
In addition, make sure your JDBC driver supports the ApplicationIntent=ReadOnly parameter.