I am creating a winform application in c#.and using sql database.
I have one table, employee_master, which has columns like Id, name, address
employee_master
Id, name, address
For MS SQL 2005 and greater:
Select Cast(IsNULL(last_value,seed_value) As Int) + Cast(increment_value As Int) As NextID From sys.identity_columns WHERE NAME =