Received error when queried the linked server

  • Hi experts,

    I am in Server A and querying Server B from SQL query analyzer by : select * from [ServerB].[database name].[owner name].

    .

    I received error: Server is not configured for DATA ACCESS.

    I checked server B and saw Server A is one of the linked server (under Linked Servers of Security). And under linked server properties=>server option, the data access is checked.

    Then I run : exec sp_serveroption 'Server B', 'data access', 'true'

    and I got another error message when I query the linked server:

    Server: Msg 18456, Level 14, State 1, Line 1

    Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'.

    What should I do now?

  • You may have set up the linked server properly but did you set it up with a login using sp_addlinkedsrvlogin ?

    That's required unless you allow anonymous logins and that should never be the case.

    --Jeff Moden


    RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
    First step towards the paradigm shift of writing Set Based code:
    ________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.

    Change is inevitable... Change for the better is not.


    Helpful Links:
    How to post code problems
    How to Post Performance Problems
    Create a Tally Function (fnTally)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply