Limited Stored Procedure and View permissions

  • Is there a way to limit a Domain group's permissions to View and Execute stored procedures and nothing else? I have to give them 'connect' permissions which allows them to see the entire db structure.

  • Is the question really dumb or has nobody done it before? LOL

  • Not sure about your question.

    You are asking to provide a cred "View definition" permission and "Execute" permission?

    If yes you can give such rights to the creds and not have to give connect permission.

    Why do you need the user to have connect permission?

    ---------------------------------------------------------------------------------------
    It begins by taking the first step.

  • You can create a role and grant execute rights to it, then put the domain group into that role. That allows execution of procs.

    I like to create a user called "datauser" that has datareader, datawriter, and execute rights. Comes in handy.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

  • What if I do not want the user to see anything besides the SP and Views?

    I granted execute and view, they can't see anything until I also give 'connect'

  • Put the SPs and views in a separate schema and only give permission on that. Or a separate database. Two-part or three-part names in them will work with that.

    - Gus "GSquared", RSVP, OODA, MAP, NMVP, FAQ, SAT, SQL, DNA, RNA, UOI, IOU, AM, PM, AD, BC, BCE, USA, UN, CF, ROFL, LOL, ETC
    Property of The Thread

    "Nobody knows the age of the human race, but everyone agrees it's old enough to know better." - Anon

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

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