How to check last firedtriggered ?

  • i want to check last fired trigered

    is there any sys table or DMV available in sql 2k5 ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • select objectproperty(object_id('NameOfTrigger'),'ExecIsLastInsertTrigger')

    gives result as '0' if not or '1' if yes

  • Thanks..............

    BUT

    what else information we can have .? ....like who exected it ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Triigers have specific order for execution, we can change it by :

    sp_settriggerorder 'TriigerName', 'LAST', 'INSERT'

    see help for OBJECTPROPERTY in MSDN for more details.

  • Actually i m new DBA

    i want to track which developer is playing with DML trigger

    i want to get as much as infor about him (what he did with trigger)

    DDL trigger can be monitored with eventdata function but not DML ?

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • Please don't cross post. It just wastes people's time and fragments replies.

    Markus answered your question over here:

    http://www.sqlservercentral.com/Forums/Topic566620-146-1.aspx

    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
  • Sorry .......gilamonster

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

  • thanks...i did the task.....thanks again:):)

    -------Bhuvnesh----------
    I work only to learn Sql Server...though my company pays me for getting their stuff done;-)

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

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