O'Reilly logo

NHibernate 3 Beginner's Guide by Gabriel N. Schenker

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

What about stored procedures and triggers?

Most modern RDBMSs offer the possibility to define logic inside the database. This can be done in the form of either stored procedures and/or triggers.

A database trigger is procedural code that is automatically executed in response to certain events on a particular table or view in a database. Such events can be, for example, the insertion or deletion of a record in a table. The trigger is mostly used to maintain the integrity of the information in the database or to create audit logs.

A stored procedure is procedural code that is available to applications accessing the database. The code is stored and executed inside the database. Typical uses for stored procedures include access control, data validation, ...

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