Getting Started with Adobe After Effects - Part 6: Motion Blur
Ask
Ask questions, discuss or help others by answering
Related Posts · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Top Categories · View All
SQL Server 141
TSQL 75
SSRS 70
SSIS 66
XML 54

Linked server query execution problem

Apr 28 2012 12:00AM by vishal.dobariya@yahoo.com   

Hello,

I am facing weired problem whenever trying to fire query over linked server.

I have Sql 2k8 server enterprise edition which has linked server pointing to Sql 2k8 R2 server enterprise edition.

i have windows authenticated login created on both db and used the same in linked server access rights/credential.

Whenever i m firing select query , it shows a message that "Login Failed for NT AUTHORITY\Anonymous logon."

I tried to search a lot on internet but nothing could resolve my issue. This is i am facing on production.

I would be very thankful if you have any resolution to this problem. Will wait for your reply. Thanks.

~ Vishal Dobariya

Submitted under: Microsoft SQL Server · DBA · LINKED SERVER ·  · 


vishal.dobariya@yahoo.com
346 · 0% · 117

8 Replies

  • It appears that you are accessing the database from a web application which runs under NTAUTHORITY\Anonymous account on IIS. When you access SQL Server from this account, the same user credentials are sent to the database. The linked server call is occurring under the context of NT AUTHORITY\ANONYMOUS and apparently the access is not allowed on the other server.

    If you are permitted to use SQL Server authentication, that may solve the problem right away. Otherwise, you might need to change the web application to run under another account that has access to the database, or give NTAUTHORITY\ANONYMOUS access to the linked server.

    commented on Apr 28 2012 10:47AM
    Jacob Sebastian
    1 · 100% · 32004
  • Jacob,

    Thanks for replying.

    I am executing query from Query analyzer and not from any application.

    Somewhere on internet i found below reply from someone but i didn't understand what should be done for the same?

    "This is the double-hop problem – basically they need to talk to their system administrator and get Kerberos trusted delegation enabled. Otherwise, they need to use sql logins instead and configure those for the linked server. "

    commented on Apr 29 2012 8:35AM
    vishal.dobariya@yahoo.com
    346 · 0% · 117
  • You mentioned that you are executing the query from query analyzer. How did you connect to query analyzer? (windows or sql authentication?, what is the username used?). What is the username used in the linked server connection?

    commented on Apr 29 2012 10:01PM
    Jacob Sebastian
    1 · 100% · 32004
  • I am connected to sql server using windows authentication i.e. domain\user1

    the same login is having access on another sql server so i have used the same one in the linked server and ticked impersonate checkbox. I opted option "Be made using the login's current security context".

    commented on Apr 30 2012 8:59AM
    vishal.dobariya@yahoo.com
    346 · 0% · 117
  • Under the above environment, I dont think the error you mentioned can happen. I would expect that you may be seeing an error related to the current user account. However, I read above that you already did extensive research and tried various options. So I am assuming that this problem is a nasty one :-)

    I would suggest you wait for a few days more to see some one else steps into this thread and provide some suggestions that might help you to fix the problem. If you can arrange a remote access to your environment, I can take a look at it over the weekend and see if I can figure out the problem.

    commented on Apr 30 2012 9:09AM
    Jacob Sebastian
    1 · 100% · 32004
  • I am tryting to execute it from my local sql client query analyzer and it's throwing that error whereas when i remotely connect to SQL server1 and try to execute the same query, it runs well.....somewhere it's written that this is a double hop problem....but no solution is provided.

    Somewhere i found people talking about Kerberos authentication configuration.......as a sql developer, i m totally blank on it....

    commented on Apr 30 2012 11:58AM
    vishal.dobariya@yahoo.com
    346 · 0% · 117
  • I took help from Sys admin person.

    They set SPN for my server and allow delegation for kerberos authentication in Active directory for my remote server.

    It needs restart of the server.

    It worked.

    commented on Jun 6 2012 1:25AM
    vishal.dobariya@yahoo.com
    346 · 0% · 117

Your Reply


Sign Up or Login to post a comment.

    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]