DBCC CHECKIDENT('tbl_Employee', RESEED, 51)
Checking identity information: current identity value '18', current column value '51'. DBCC execution completed. If DBCC printed error messages, contact your system administrator.
SELECT ROW_NUMBER() OVER (ORDER BY StuID ASC) AS 'SlNo' ,* from StudentMaster
SlNo StuID SName Marks 1 S001 Naga 98 2 S102 Sundar 92 3 S158 John 85 4 S203 Ganesh 95 5 S211 Kumar 90
Set identity_insert EmployeMaster on Insert into EmployeMaster(EmpId, EmpName, EmpAge) values (10,'Shankar',19)
INSERT INTO tbl_Student(Name,Class) SELECT 'Ali','IV Standard' UNION ALL SELECT 'John','V Standard' UNION ALL SELECT 'Abraham','X Standard'