September 10, 2008 at 12:35 am
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;-)
September 10, 2008 at 12:55 am
select objectproperty(object_id('NameOfTrigger'),'ExecIsLastInsertTrigger')
gives result as '0' if not or '1' if yes
September 10, 2008 at 1:05 am
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;-)
September 10, 2008 at 1:13 am
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.
September 10, 2008 at 1:18 am
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;-)
September 10, 2008 at 2:02 am
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
September 10, 2008 at 2:32 am
Sorry .......gilamonster
-------Bhuvnesh----------
I work only to learn Sql Server...though my company pays me for getting their stuff done;-)
September 10, 2008 at 6:19 am
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