Professional Documents
Culture Documents
TCS Internal
1
Objective
TCS Internal
2
Scope
TCS Internal
3
Data Integrity Concept
The consistency and accuracy of the data stored in the
database with respect to the processes the system supports,
is referred as data integrity.
Reasons for enforcing data integrity :
To prevent invalid data entry into the database tables.
To enforce the rules that are associated with the
information in the database.
Data integrity in Conventional system Vs SQL Server
TCS Internal
4
Data Integrity Concept
The consistency and accuracy of the data stored in the
database with respect to the processes the system supports,
is referred as data integrity.
Reasons for enforcing data integrity :
To prevent invalid data entry into the database tables.
To enforce the rules that are associated with the
information in the database.
Data integrity in Conventional system Vs SQL Server
TCS Internal
5
Data Integrity Concept
Simplifies maintenance.
Need for rules at the client are eliminated since all rules are
stored with the data itself.
TCS Internal
6
Methods defining Data Integrity logic
TCS Internal
7
Types of Data Integrity
Entity integrity
Domain integrity
Referential integrity
TCS Internal
8
Entity Integrity
TCS Internal
9
Domain Integrity
TCS Internal
10
Referential Integrity
TCS Internal
11
Enforcing data Integrity
TCS Internal
12
Procedural data Integrity
TCS Internal
13
Declarative data Integrity
More concise and less error prone than procedural data integrity.
TCS Internal
14
IDENTITY Property
The system generated values uniquely identify each row inserted into
the table.
Syntax:
IDENTITY [ ( seed, increment) ]
TCS Internal
15
Summary
TCS Internal
16