How to view Trigger in Profiler

I'm trying to figure out why I can't see my trigger fire off in SQL 2005 Profiler.  Which propety should I enable the trace to monitor in order to see any triggers that have been fired on my tables?
LVL 1
dba123Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

J2811Commented:
Erm, not sure if this is what you are after. For DML triggers,

Knowing Triggers are really stored procedure under a disguise, using SQL Server Profiler, create new trace and trace on stored procedure such as STMTSTARTING.

For example if I have a DML trigger on Table_1,

ALTER TRIGGER [testDMLTrig]      
ON [dbo].[Table_1]
AFTER INSERT, UPDATE
AS RAISERROR ('Notify Customer Relations', 16, 10)

In the profiler, you would see "RAISERROR('....)" in STMTSTARTING and STMTCOMPLETED lines.

Unfortunately I don't see where in SQL Profiler allows you to see the name of the trigger though. Any experts out there that know otherwise?

Now of course the other very premitive way, is you can always insert a record into another user defined table whenever a specific trigger that you are trying to monitor get fired off.


Regards,
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
imran_fastCommented:
follow these steps
=============
1. In new trace connect to server
2.In Trace properties inside profiler
3.Click on event Selection
4.Check  Show All Events (to view all the events)
5.Enable Sp_StmtStarting, Sp_StmtCompleted check box

Let us know if you need furter assistance.
0
J2811Commented:
thank you for agreeing with me imran_fast.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

imran_fastCommented:
sorry didn't read your post carefully.
0
J2811Commented:
dba123, does this answer your question? if no, please let know.
0
dba123Author Commented:
well that's stupid that you can't see the name of the trigger...what a joke MS.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.