Database reference - AdventureWorks2008

AdventureWorks2008 -  triggers

DDL Triggers

namecreatedmodifiedparentcomment
ddlDatabaseTriggerLogMar 19 2009 9:09PMMar 19 2009 9:10PMDATABASEDatabase trigger to audit all of the DDL changes made to the AdventureWorks2008 database. Yes! 

DML Triggers

namecreatedmodifiedtypeparentcomment
dEmployeeMar 19 2009 9:10PMMar 19 2009 9:10PMInstead of Delete   EmployeeINSTEAD OF DELETE trigger which keeps Employees from being deleted. 
iuPersonMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update Insert   PersonAFTER INSERT, UPDATE trigger inserting Individual only if the Customer does not exist in the Store table and setting the ModifiedDate column in the Person table to the current date. 
iWorkOrderMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Insert   WorkOrderAFTER INSERT trigger that inserts a row in the TransactionHistory table. Yay! 
uWorkOrderMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update   WorkOrderAFTER UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in the WorkOrder table. 
iPurchaseOrderDetailMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Insert   PurchaseOrderDetailAFTER INSERT trigger that inserts a row in the TransactionHistory table and updates the PurchaseOrderHeader.SubTotal column. 
uPurchaseOrderDetailMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update   PurchaseOrderDetailAFTER UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in PurchaseOrderDetail and updates the PurchaseOrderHeader.SubTotal column. 
uPurchaseOrderHeaderMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update   PurchaseOrderHeaderAFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the PurchaseOrderHeader table. 
dVendorMar 19 2009 9:10PMMar 19 2009 9:10PMInstead of Delete   VendorINSTEAD OF DELETE trigger which keeps Vendors from being deleted. 
iduSalesOrderDetailMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update Delete Insert   SalesOrderDetailAFTER INSERT, DELETE, UPDATE trigger that inserts a row in the TransactionHistory table, updates ModifiedDate in SalesOrderDetail and updates the SalesOrderHeader.SubTotal column. 
uSalesOrderHeaderMar 19 2009 9:10PMMar 19 2009 9:10PMAfter Update   SalesOrderHeaderAFTER UPDATE trigger that updates the RevisionNumber and ModifiedDate columns in the SalesOrderHeader table.Updates the SalesYTD column in the SalesPerson and SalesTerritory tables. 



Documentation generated by SqlSpec