bolo17

Untitled

Aug 25th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. SQL Server Syntax
  2. -- Trigger on an INSERT, UPDATE, or DELETE statement to a table or view (DML Trigger)
  3.  
  4. CREATE [ OR ALTER ] TRIGGER [ schema_name . ]trigger_name
  5. ON { table | view }
  6. [ WITH <dml_trigger_option> [ ,...n ] ]
  7. { FOR | AFTER | INSTEAD OF }
  8. { [ INSERT ] [ , ] [ UPDATE ] [ , ] [ DELETE ] }
  9. [ WITH APPEND ]
  10. [ NOT FOR REPLICATION ]
  11. AS { sql_statement [ ; ] [ ,...n ] | EXTERNAL NAME <method specifier [ ; ] > }
  12.  
  13. <dml_trigger_option> ::=
  14. [ ENCRYPTION ]
  15. [ EXECUTE AS Clause ]
  16. get link:https://ouo.io/yThDCi
Add Comment
Please, Sign In to add comment