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
If you are using Microsoft SQL Server. Use this statement to get current identity value of table. Then add your seed value which you have specified at time of designing table if you want to get next id.
SELECT IDENT_CURRENT()