how to get the next autoincrement value in sql

后端 未结 10 980
时光取名叫无心
时光取名叫无心 2020-12-16 13:21

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

10条回答
  •  悲&欢浪女
    2020-12-16 13:57

    As for me, the best answer is:

    dbcc checkident(table_name)
    

    You will see two values (probably same) current identity value , current column value

提交回复
热议问题