trigger status

  • Can anyone tell me if there is a way of getting back a full list of all the triggers in a database, and their status (enabled or disabled)?

    sp_help and sp_helptrigger don't quite give enough information. I see this is all stored in sysobjects, an dit appears to be the 'status' that identifies if a trigger is enabled or not.

    Thanks.

  • select name,

    case objectproperty(id,'ExecIsTriggerDisabled')

    when 1 then 'Disabled'

    else 'Enabled' end [status]

    from sysobjects

    where xtype='tr'

    --

    -oj

    http://www.rac4sql.com

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

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