Identity fields are auto incremented field. There can be only one identity field per table. It needs the base value and the increment value with which it will be incremented whenever new record is inserted in the table. An IDENTITY column of tinyint datatype can go upto 255, smallint can go upto 32767, int can go upto 2147483647 and bigint can go upto 9223372036854775807.
CREATE TABLE dbo.Employee ( EmployeeID smallint identity(7,2), EmployeeName char(20) )
Now we need to just enter the name of the employee not his id.
Insert into table dbo.Employee(EmployeeName) Values(“Kshyup”)
After insertion and deletion of data we may be in need of resetting the identity column counter for that we can make use of DBCC CHECKIDENT. For example
DBCC CHECKIDENT(‘Employee’, RESEED, 1)





