sql server permissions on triggers

  • In a sql server 2008 r2 database I just added 3 triggers to a specific table. Can you tell me if the user and/or application that uses the triggers need to have specific permission levels for the triggers to run. If these permissions are required, can you tell me what permissions are required for the user and/or application to run an access the triggers?

  • Hi,

    Example: a user has permission to insert, but denied on delete for tableA.

    When user inserts a row into tableA > insert triggers fire.

    When user deletes a row from tableA > delete triggers don't fire.

    So the triggers fire depend on type of action (insert/update/delete) and what permissions (insert/update/delete) were granted for the user on the table.

    --------------------------------------------------------------------------------------
    Hai Ton
    My Db4Breakfast blog.

  • When I was orginally using the code, I had full 'sa' permissions. Now when I using the other database, there are no special permissions that have been setup.

    Thus can you tell me what permissions are required for a user to have update, insert, and delete permissions? What role is required like sysadmin?

  • Either db_datawriter role or UPDATE, INSERT and DELETE granted on the table.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • THANKS!:-)

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

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