Mega Code Archive
Search
.Net
ASP .Net
ASP .Net Tutorial
C#
C# Book
C# by API
C# Tutorial
VB.Net
VB.Net by API
VB.Net Tutorial
Visual C++ .Net
VisualBasic Script
Java
Java
Java Book
Java by API
Java Tutorial
Script
Flash ActionScript
Flex
JavaScript DHTML
JavaScript Reference
JavaScript Tutorial
Database
MSSQL
MSSQL Tutorial
MySQL
MySQL Tutorial
Oracle PLSQL
Oracle PLSQL Tutorial
PostgreSQL
Languages
Android
C
C Tutorial
C++
C++ Tutorial
Delphi
Perl
PHP
Python
Python Tutorial
Ruby
Silverlight
Office
MSOfficeExcel 2007 Tutorial
MSOfficePowerPoint 2007 Tutorial
MSOfficeWord 2007 Tutorial
Data
XML
XML Tutorial
MSSQL Tutorial
Constraints 63 codes
Home
MSSQL Tutorial
Constraints
1 A check constraint uses an expression to qualify records that are acceptable for any Inserts or Updates
2 A NOT NULL phrase adds a constraint to restrict the input of rows with a null value
3 A statement that adds a foreign key constraint
4 A table-level check constraint that limits Banker IDs to a specific format
5 Adding a CHECK Constraint to an Existing Table
6 Adding a FOREIGN KEY to the Employees Table
7 Adding a UNIQUE Constraint to an Existing Table
8 Cascading Updates and Deletes
9 CHECK (DATEPART(DAY, GETDATE()) 28)
10 CHECK Clause
11 Check Constraint
12 Check for data length
13 Column with default random value
14 Constraints
15 Constraints with name
16 Creating a UNIQUE Constraints when creating a table
17 Creating UNIQUE Constraints on Existing Tables
18 Creation of Default Values
19 DEFAULT Constraints
20 Default int type value and default char type value
21 Defaults
22 Define constraint name for primary key
23 Define Rules
24 Designating Default Column Values
25 Disable checking on all constraints
26 Disabling and Enabling a Constraint
27 Dropping a Constraint from a Table
28 Dropping Defaults
29 Enable checking on all constraints
30 Exception in a transaction
31 EXEC sp_helptext on Rules
32 FOREIGN KEY Constraints
33 Insert to a table with default value
34 Making a Table be Self-Referencing
35 Mark nocheck for a constraint
36 NONCLUSTERED PRIMARY KEY
37 ON DELETE and ON UPDATE Options
38 ON UPDATE CASCADE ON DELETE NO ACTION
39 Pattern based constraint
40 PRIMARY KEY (cust_id)
41 Primary key and foreign key
42 Primary Key Constraint
43 Re-creating the FOREIGN KEY with NO ACTION (Implicitly)
44 REFERENCES customer(cust_id) (from another table)
45 Referential Constraints
46 Sample Table Using the uniqueidentifier and NEWID() Function
47 Self-Referencing Tables
48 Supporting Basic Referential Integrity with Foreign Keys
49 The FOREIGN KEY Clause
50 The PRIMARY KEY Clause
51 The syntax for defining a default
52 Trap Both Primary Key and CHECK Constraint Violations
53 Unique Constraint
54 Unique constraints can be created when initially creating the table or added after
55 Unique constraints will also allow one NULL, whereas primary keys will not
56 UniqueIdentifier are either explicitly provided or they are generated by the NEWID() system function
57 Update statement and check-constraints
58 Use or to link two conditions for check constraint
59 Using a Multicolumn CHECK Constraint
60 Using a Multicolumn Primary Key
61 Using CHECK Constraints
62 Using the system date as a default parameter
63 You cannot add another primary key to table