Skip to Content
Mastering SQL Server® 2008
book

Mastering SQL Server® 2008

by Michael Lee, Gentry Bieker
January 2009
Intermediate to advanced
792 pages
23h 8m
English
Sybex
Content preview from Mastering SQL Server® 2008

Chapter 6

Managing Data Integrity

Data integrity controls help to guarantee the accuracy, validity, and correctness of data stored in a database. Data integrity controls can be thought of as rules regarding what is considered to be valid data. Data integrity can be enforced using stored procedures, or it can even be enforced outside of SQL Server in the calling application.

However, data integrity is mainly enforced by constraints and triggers. Constraints are additional rules applied to a table that determine valid data. They are automatically enforced by the database engine.

Triggers are special stored procedures that execute in response to events on the server. Data Manipulation Language (DML) triggers can respond to, or execute instead of ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Beginning, Microsoft® SQL Server® 2008 Administration

Beginning, Microsoft® SQL Server® 2008 Administration

Chris Leiter, Dan Wood, Albert Boettger, Michael Cierkowski
Microsoft® SQL Server® 2008 Bible

Microsoft® SQL Server® 2008 Bible

Paul Nielsen, Mike White, Uttam Parui

Publisher Resources

ISBN: 9780470289044Purchase book