摘要:
/****** 第一种解决方案:锁+事务 保证原子性 ******/ begin transaction; declare @sn bigint; select top 0 id from IDS with (tablockx); set @sn=isnull(IDENT_CURRENT('IDS'),IDENT_INCR('IDS')) + {0}; DBCC CHECKIDENT ('IDS', RESEED, @sn);... 阅读全文
posted @ 2013-12-19 15:07
福州软件定制
阅读(444)
评论(0)
推荐(0)
2013年12月19日