【问】报”不能在对象”t_sys_journal”中插入重复键? | ||
【适用版本】食通天5 | 【模块】系统管理 | 【点击数】86 |
【知识编号】C2012051100053 | ||
【问题描述】报"不能在对象"t_sys_journal"中插入重复键? |
use issrestv5
go
declare @tablename varchar(100)
declare test_cur cursor for
select object_name(id) from syscolumns
where status=128
open test_cur
fetch test_cur into @tablename
while @@fetch_status=0
begin
DBCC CHECKIDENT (@tablename, RESEED)
fetch test_cur into @tablename
end
close test_cur
deallocate test_cur
go