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
Constraints 39 codes
Home
MSSQL
Constraints
1 A statement that creates a table with two column-level check constraints
2 A unique constraint
3 Add a default value of 0 if no value specified
4 Add a nullable column
5 Add a primary key to a table
6 Add check constaint to only allow positive value
7 Add constraints for two columns
8 Add Default value constraint
9 Add Unique constaint to table creation
10 Adding a Foreign Key to an Existing Table
11 Adding a UNIQUE Constraint to an Existing Table
12 Blocking Empty and Missing Character Input
13 Changing a Column Definition
14 Check constraints coded at the table level
15 CHECK Constraints for current date
16 Check the value range
17 Combine two columns as the primary key
18 Constraint
19 Constraint check (Options)
20 Create Rules
21 Creating a Primary Key on an Existing Table
22 Data length
23 Define Primary key and foreign key
24 Define Primary key in table creation command
25 DELETE CASCADE and UPDATE CASCADE
26 Enable a column to optionally not require a value by designating it as a nullable column
27 How to use foreign key constraints
28 Maintenance of the referential constraint
29 Mark constraint with nocheck when creating a constraint
30 Not Allowing Null Values in a Column
31 NOT NULL column and NULL column
32 Sample Code for Disabling a Constraint
33 Set default value for column
34 Specification of the primary key of the employee table as a column-level constraint
35 Table-level constraints
36 The syntax of a check constraint
37 Two constraints for one single column
38 UniqueIdentifier are either explicitly provided or they are generated by the NEWID() system function
39 WITH CHECK OPTION says any INSERT or UPDATE statements must meet that where clause criteria