How to create UNIQUE constraints In Sql server

The UNIQUE constraint uniquely identifies each record in a database table. The UNIQUE constraints provide a guarantee for uniqueness for a column or set of columns. Query:- CREATE TABLE ACCOUNT2 ( P_Id int NOT NULL UNIQUE, LastName varchar(50) NOT NULL, FirstName varchar(50), Address varchar(255) ) To create a UNIQUE constraints in already created table use

How to create NOT NULL constraints In Sql server

Constraints are used to limit the type of data that can go into a table. SQL NOT NULL Constraint:- The NOT NULL constraint enforces a column to NOT accept NULL values. Query:- CREATE TABLE Account ( P_Id int NOT NULL, LastName varchar(50) NOT NULL, FirstName varchar(50) ) In this query Id and Lastname is NOT NULL

What are Constraints

What are Constraints:- Constraints are an ANSI-standard method of enforcing data integrity. Constraints ensure valid data values are entered in columns and that the relationships between tables should be maintained. Integrity Type Constraint type Target Description Domain DEFAULT Column Specifies the default value for the column when INSERT statement does not provide a value. CHECK Column Specifies

What is Data Integrity in Sql server and its types

What is Data Integrity in Sql server and its types An important part in database designing and planning is deciding way to enforce the integrity of the data. Data integrity refers to the consistency and accuracy of data that is stored in your database.Enforcing data integrity ensures the quality of the data in your database.

How to Insert images in body when using Gmail

In this tutorial you can learn how you insert images in the body part of your gmail. Open your Gmail account. Click on settings on the right top side. Then click on Laps tab as shown in below image.   Click on image to enlarge   Now search for inserting images as shown on below

What Are Partitioned Indexes in Sql server

In SQL Server 2008, just as you can divide tables into partitions. Partitioned indexes are indexes in which the index pages are separated horizontally into multiple physical locations based on range of values in the index column. The physical locations for partitions are filegroups. Partition indexes are use for the same reason that for partition