FAC_IT
asked on
SQL query will work on SQL server SSMS but not on desktop SSMS
I am running a SQL query from SQL 2014 to SQL 2008R2. When I run the query for the SQL server will run fine. When I run it from my desktop I get the following error:
Msg 18456, Level 14, State 1, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
When I look at the logs on the server that the query is connecting to this is the error I am getting:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON Reason: Token-based server access validation failed with an infrastructure error.
Here is the query I am running. I am running from SQL 2014:
SELECT * FROM [2008R2 server].CCMData.dbo.DimTim e
I am using my domain credentials.
Thanks for any help.
Msg 18456, Level 14, State 1, Line 1
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.
When I look at the logs on the server that the query is connecting to this is the error I am getting:
Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON Reason: Token-based server access validation failed with an infrastructure error.
Here is the query I am running. I am running from SQL 2014:
SELECT * FROM [2008R2 server].CCMData.dbo.DimTim
I am using my domain credentials.
Thanks for any help.
Sounds like your SQL server service is running using NT Authority. Change the server to run using a domain account and it should work fine.
I suppose that [2008R2 server] is an existing linked server name, right?
If so check the credentials configuration for that linked server.
If so check the credentials configuration for that linked server.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.