Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 24th, 2012  |  syntax: None  |  size: 0.32 KB  |  hits: 9  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Trigger parent id sql server
  2. SELECT @parent =  object_id(object_name(parent_id)) from sys.triggers where name = 'tr1'
  3.        
  4. SELECT @parent =  object_id(object_name(parent_id)) from sys.triggers where name = 'tr1'
  5.        
  6. For DML triggers, this is the object_id of the table
  7.     or view on which the DML trigger is defined.