- Trigger parent id sql server
- SELECT @parent = object_id(object_name(parent_id)) from sys.triggers where name = 'tr1'
- SELECT @parent = object_id(object_name(parent_id)) from sys.triggers where name = 'tr1'
- For DML triggers, this is the object_id of the table
- or view on which the DML trigger is defined.