Stored Proc Permissions

  • Good day Experts,
    I am a SysAdmin and i have two stored procs on the same database.I can run one them successfully and the other one gives back an error.Login failed for user "AAAAAA"'.
    As a Sysadmin  i have all rights.What might be the cause?

    Thank you

  • Does the one that fails involve a linked server or an OPENROWSET command or something like that?

    John

  • Does the failing stored procedure contains the EXECUTE AS clause?

    ** Don't mistake the ‘stupidity of the crowd’ for the ‘wisdom of the group’! **
  • Sounds like an interview question.

    --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)

  • Thanks
    @john-2, Yes the proc reads from a linked server and i tested the connection, it's successfull.
    @ Han Shi , the proc doesn't contain "Execute As" Clause

    Thanks

  • tmmutsetse - Wednesday, April 25, 2018 10:40 AM

    Thanks
    @john-2, Yes the proc reads from a linked server and i tested the connection, it's successfull.
    @ Han Shi , the proc doesn't contain "Execute As" Clause

    Thanks

    Check the how the logins, security is setup for the linked server - sounds like that is likely the issue.

    Sue

Viewing 6 posts - 1 through 5 (of 5 total)

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