August 2012
Intermediate to advanced
1416 pages
33h 39m
English
DDL triggers provide a safety net — a way to track every change to the schema. The event model that can be tracked is comprehensive, and the data available to the trigger using the EventData() function and XML is dynamic and complete. Because DDL triggers can fire for such a broad range of events, the EventData() function returns XML data about the event.
DDL triggers are well suited to the following scenarios:
Triggers are a key feature of client/server databases. It is the trigger that enables the developer to create complex custom business rules that are strongly enforced at the Database Engine level. SQL Server has two types of triggers: INSTEAD OF triggers and AFTER triggers.
Read now
Unlock full access