End user needs to execute just ONE sproc

  • Hi all,

    As the title implies, Mr One-Sproc just needs to run that - and we don't want him having access to anything else.  I'm thinking the least effort way which is reasonably secure to abstract this is to set up a CMD/PS file that accepts his params and lets loose - no client SSMS, no lengthy login/training etc.

    TIA 🙂

  • Just grant execute to the proc and nothing else, no other role memberships, no read, no write etc just 1 plain execute

    GRANT EXECUTE ON [TheOneSproc] TO [MrOneSproc]

     

    Then they can use whatever client they want to execute the sproc

     

  • I agree with Aunt-Green but it may require you to add an "EXECUTE AS OWNER" to the stored procedure.  "It Depends".

    --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)
    Intro to Tally Tables and Functions

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

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