Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经将一个表从一个数据库导入到另一个数据库,问题是自动增量 ID 现在已被删除,我想将主键添加回我复制的表上的原始列,并通过获取最后一个最大 ID 使其再次工作当它正常工作并继续正常添加1时,这可能吗?
谢谢P
Just Check the Table.Whether Identity is must be there..Remove the identity..So it wil start from 1
The Query DBCC CHECKIDENT('Your Table Name', RESEED, 0)