Re: Linked Server login problem with a Job

From: Andrew J. Kelly (ajkellynospam_at_attbi.com)
Date: 04/28/03

  • Next message: Denny: "Re: Windows Group in SQL Login"
    Date: Mon, 28 Apr 2003 13:55:52 -0400
    
    

    Have you tried dropping the linked server and recreating it?

    -- 
    Andrew J. Kelly
    SQL Server MVP
    "Jen Skripac" <jen526@aol.com> wrote in message
    news:vaqkgdk1g77q48@corp.supernews.com...
    > Any help with this would be appreciated. My client has two servers: Server
    A
    > runs SQL7 and Server B runs SQL2000.  Both are Win2000 machines, and
    Server
    > B is defined as a Linked Server on Server A.
    >
    > I have a job on Server A that calls a stored procedure (also on Server A).
    > The stored proc then populate some data on Server B.
    >
    > This was working fine.  Last week, the client started to upgrade the SQL7
    db
    > to SQL2000, then aborted and rebuilt it back on SQL7 instead.  Now, the
    job
    > fails with:   "Login failed for user 'NT AUTHORITY\ANONYMOUS LOGON'"
    >
    > The linked server SEEMS to be ok...if we log into Query Analyzer as "sa"
    and
    > run the procedures manually, it works fine.  Other pertinent data:
    ServerA's
    > "sa" user is mapped to the remote "sa" login on Server B.  Both have
    > authentication to "SQL Server and Windows"
    >
    > So, I'm guessing there's something wrong with the job definition, but I
    > can't figure what.  The owner of the job is "sa" and the "Run as User"
    > setting for all steps is "(self)".  I'm stumped as to why the "sa" user
    > would run fine via Query Analyzer, but not from a job?
    >
    > I'd be grateful for any suggestions.
    >
    > Jennifer Skripac
    > skripac@mainstreams.com
    >
    >
    >
    >
    >
    >
    >
    

  • Next message: Denny: "Re: Windows Group in SQL Login"

    Relevant Pages

    • Re: Support team security
      ... to view Linked Server properties (this is a tool requirement not a SQL ... Jasper Smith (SQL Server MVP) ... SQL Server Agent Job Schedule and Job history ...
      (microsoft.public.sqlserver.security)
    • Re: SQL Server 2000 linked server problem
      ... of SQL Server 2000 to fix some known bugs on the SQL Server side. ... the both two SQL Server instances (local and linked server), ... If Windows Firewall or other third party firewall is used, ...
      (microsoft.public.sqlserver.connect)
    • RE: addling linked server
      ... What is the target for the linked server? ... Is it SQL Server? ... what security context you need to have the queries run on your linked ...
      (microsoft.public.sqlserver.server)
    • Re: Setting up Linked server to MsAccess
      ... This will set the security so anyone using the linked server ... At the database level I have added my Server login ...
      (microsoft.public.sqlserver.security)
    • Re: MAS90
      ... To set up a linked server from SQL Server 2000 to MAS90 using Enterprise ...
      (comp.databases.ms-access)