November 10, 2008 at 2:00 pm
OK, I am sure there is a simple explanation for this, but it is driving me crazy.
We have 2 SQL Server 2000 servers, both in the same domain. Both are set for mixed-mode authentication.
Using SQL Query Analyzer, I can connect to either server using windows authentication. BUT when I connect to Server1 (using windows authentication) and try to run "SELECT * FROM [Server2].Database1.dbo.Table1" I get the following error:
Login failed for user '(null)'. Reason: Not associated with a trusted SQL Server connection.
Permissions are correct for both servers. My question: why is it "user'(null)'"? Even if the permissions are wrong, shouldn't it at least see my windows login?
November 11, 2008 at 11:30 am
Sounds like either an ownership chain issue or your Linked Server is set up wrong between the two.
EDIT: Sorry. To clarify, check your Linked Server to make sure it has all the correct security settings and is actually referencing the Server2 database in question.
November 11, 2008 at 8:38 pm
This is a Kerberos delegation issue because you don't have the appropriate SPN's set in Active Directory for MS SQL Service on both or either servers.
It's a frustrating thing.
It's most likely due to the fact that you are running SQL server as a domain account and not local system (good for you!)
There are a million articles on it in the MS Kbase but you'll end up using Setspn.exe to set the spn
Make sure you understand that it's 1 spn per host/service/serviceaccount. IF you change the service account your SPN breaks and nobody logs in.
Cheers!
~BOT
Craig Outcalt
November 12, 2008 at 4:12 am
It's not always a Kerberos issue, SQLBOT. I've actually encountered this issue on other occasions.
But SQLBOT brings up a good point. Have you actually verified that your SQL Services are running as Domain accounts and not local system?
Likely they are, given the error, but it never hurts to double-check.
November 12, 2008 at 10:39 am
Thanks for the help. I double-checked the linked server security settings and that did the trick. I had read about the SPN issues and I worried that was the problem (I am using a domain account for SQL Services). Thanks again for pointing me in the right direction....
November 12, 2008 at 10:57 am
Glad we could help. @=)
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply