【问】做采购收货单时,手工录入商品和自动录入商品保存时都提示第一行编码值不能重复,或在数据库中有重复的项? | ||
【适用版本】专卖店8 | 【模块】基本档案 | 【点击数】87 |
【知识编号】Z2012052800048 | ||
【问题描述】做采购收货单时,手工录入商品和自动录入商品保存时都提示第一行编码德值不能重复,或在数据库中有重复的项? |
use isszmv8
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