In SQL Server 2008, let's say I have a table with a view and INSTEAD OF
triggers on it.
When I insert or update, is there a way inside the trigger to determine the SQL query that was used to invoke the trigger?
For example, if I do the following:
UPDATE MyView SET Address = '123 Main St'
Is there a way inside the trigger to get the actual SQL query that was used, i.e.,
UPDATE MyView SET Address = '123 Main St'
I hope this makes sense.
Thanks.