修改数据库ID

 set  IDENTITY_INSERT Store ON

insert into Store(Id,CreatedOn, CreatedBy)
select  Id, CreatedOn, CreatedBy
from [dbo].[Store]
where code = '200140';

set  IDENTITY_INSERT Store Off 
原文地址:https://www.cnblogs.com/moondear/p/11340586.html