Chapter 9. Implementing Complex Processing Logic: Programming Triggers

You can include programmatic capabilities into your database using stored procedures, as described in Chapter 8, "Implementing Business Logic: Programming Stored Procedures." However, tables are considered as passive objects that accept modifications, and you must rely on your programs to build complex business requirements.

You can incorporate complex business logic directly into your tables, defining special procedures that react to specific actions automatically. These special procedures are called triggers. In this way, a table can be a self- contained object with attributes (columns and properties), business rules (constraints), and application logic (triggers).

This ...

Get Microsoft® SQL Server™ 2000 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.