Answer: We need to add identity column value explicitly. For that we can use the following query:
Set identity_insert EmployeMaster on
Insert into EmployeMaster(EmpId, EmpName, EmpAge)
values (10,'Shankar',19)
In the above query I mentioned "Identity_Insert on" for table name EmployeeMaster. Second I specified all the column names and inserted the values corresponding to tht column. Now we will be having identity value as 10.
Asked In: GAVS Technology |
Alert Moderator