views:

192

answers:

3

Can I ascertain the name of the stored procedure that caused the trigger to fire from within the trigger?

+1  A: 

I'm not sure offhand, but what if it wasn't triggered by a stored procedure?

You might be able to use DBCC INPUTBUFFER as in this article.

Cade Roux
A: 

Thanks Cade - I am not to worried about other influences - just wondered if it could be done?

A: 

Thanks - this looks good.