Question

I am having trouble with a Linked Server.

I would typically not use a linked server, but legacy issues are forcing my hand.

I am attempting to set up a linked server between two new production SQL servers. I have configured SQL on both machines with domain service accounts running MSSQLSvc on each respective SQL instance.

The domain service accounts have SPNs registered; I have verified this through AD attribute editor(sp?). I can perform single hop queries on the actual servers, but no luck with the double hop from my laptop (domain admin).

I have used the Kerberos Config tool on each server and configured what I can.

This is where google falls short on this issue. When I use the Kerberos Config Tool on one of the servers I get this for my service account running MSSQLsvc:

TCP must be enabled to use Kerberos authentication.

In the SQL server config manager, I have TCP/IP enabled.

I have restarted services and the server on several occasions.

Any thoughts? I can provide more information.

Was it helpful?

Solution

Verify that both SQL Servers can use Kerberos

  1. connect from your laptop to SQLSERVER1 using windows auth.

  2. Run this query: select auth_scheme from sys.dm_exec_connections where session_id = @@spid It should return "Kerberos".

  3. If it returns "NTLM":

  4. Verify no duplicate spn's (SETSPN -X)
  5. Verify correct spn's (SETSPN -L)
  6. Repeat for SQLSERVER2

Once you can connect to both servers using Kerberos, then you need to ensure that SQLSERVER1 is trusted to delegate to SQLSERVER2. This is set in AD on the service account.

Licensed under: CC-BY-SA with attribution
Not affiliated with dba.stackexchange
scroll top