Hi All,
We have a two node cluster with a SQL 2012 Availability Group. The connection works fine for the Availability group if tried from the server itself. However when trying to connect from a client the connection fails if the Availability group is on node 02. When Availability Group is running on node 1 the connection succeeds. Also this only happens when using a Windows login, using SQL login works fine even if the Availability Group is running on node 2.
Error message is:
The target principal name is incorrect. Cannot generate SSPI context. (Microsoft SQL Server, Error: 0)
So the scenario is like this. If Availability Group is running on node 01, both Windows and SQL logins work from client. If Availability Group is running on node 02, then only SQL login works from client while Windows login fails with the above error message. Also, this is only happening if tried from client side, on server itself there is no issue.
Another interesting thing is that this is only happening for one Availability Group. We have another Availability Group on the same cluster and it's not giving us any issues connecting from client.
Any ideas?
Thanks.