O'Reilly logo

Microsoft® SQL Server™ 2000 Programming by Example by Carlos Eduardo Rojas, Fernando G. Guerrero

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required