Database
  Home arrow Database arrow Referential Integrity Explained: Bonding T...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Actuate Whitepapers 
VeriSign Whitepapers 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DATABASE

Referential Integrity Explained: Bonding Tables Together
By: Alf Pedersen
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 3 stars3 stars3 stars3 stars3 stars / 10
    2004-11-17

    Table of Contents:
  • Referential Integrity Explained: Bonding Tables Together
  • Examples
  • How is Referential Integrity Maintained?
  • Taking This a Bit Further

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    Referential Integrity Explained: Bonding Tables Together


    (Page 1 of 4 )

    Referential integrity is important to any database design. Why is it so important, and how does it work? Alf Pedersen defines the phrase and spells out why you wouldn't want to build a database without it.

    In an ordinary database design, referential integrity is a key component. Have you ever wondered what this term really means? I have. Let's explore Referential Integrity together. But first, get yourself a cup of coffee, as we need to work a little on this topic.

    First, let's break up this phrase. This is always a smart thing to do; if you can't see it all at once, break it down until you can study a small part of the problem which you can see.

    Looking up the word referential in a dictionary yields an explanation something like this: 

    Ref`er*en"tial: Containing a reference; pointing to something out of itself;

    Hmm, something outside itself...not contained inside, but outside. Now, let us check our integrity: A new lookup gives us the following:

    The state of being unimpaired; soundness. The quality or condition of being whole or undivided; completeness.

    I really like that one. That means something is not broken, but sound and complete.

    Referential integrity means just that pointers from something to something outside itself are sound and unbroken.

    In database design, the term referential integrity simply means that if a row in a table has a pointer to a row in another table, the row in the table that is pointed at, must be sound (exist). Put another way, you should not remove a row which contains information that other row(s) depend on.

    More Database Articles
    More By Alf Pedersen


       · This is a strange article. You plug your own site without telling us what the site...
       · You raise some good points. I'm going to follow up with the author on that...
       · Loosah,This is not an article about naming conventions. Frankly, I do not care...
       · The article is presented as "Referential Integrity Explained" - that would, to me,...
       · Quote "The article is presented as "Referential Integrity Explained" - that would,...
     

    DATABASE ARTICLES

    - Database Programming in C# with MySQL : Usin...
    - Formatting Techniques for Data Access from E...
    - Data Access from Excel VBA
    - Generating a Multiple Table Crystal Report u...
    - ADO and the Command Object
    - On Wiring Up an ADO Data Control
    - Reading and Writing to Files on the Intranet
    - Using ADO Record to Create and Navigate Intr...
    - Using Data Access Pages to Access Data on a ...
    - Using ADO with the SQL Native Client
    - ADO`s Stream Object
    - Opening a Record Object Referencing an Open ...
    - Introducing Jasper (SQL Anywhere 10 Beta)
    - Creating a Database Project in VS 2005
    - Manipulating ADO Recordsets





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway