Link to home
Start Free TrialLog in
Avatar of FAC_IT
FAC_ITFlag for United States of America

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.DimTime

I am using my domain credentials.

Thanks for any help.
Avatar of Mohammed Khawaja
Mohammed Khawaja
Flag of Canada image

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.
ASKER CERTIFIED SOLUTION
Avatar of Peter Kiprop
Peter Kiprop
Flag of Kenya image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial