script to find that a login has permissions to which tables & SP's

  • Dear All,

    Can you give me a script\query wherein I wud be able to

    find whether a login has permissions to which tables & Sp's

    .....and what permissions.

    regards,

    Ninad

  • Use the below one which will give the access in the current database.

    sp_helprotect [ [ @name = ] 'object_statement' ]

    [ , [ @username = ] 'security_account' ]

    [ , [ @grantorname = ] 'grantor' ]

    [ , [ @permissionarea = ] 'type' ]

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

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