【问】点击日结很慢,如何解决? | ||
【适用版本】商云8 | 【模块】基本档案 | 【点击数】144 |
【知识编号】P2017121100004 | ||
【问题描述】用户总部商云V8做日结做不动 显示2个格格就定住呢 我用SQL修复又没有错误 如何解决! |
use hbposv8
go
declare @tablename varchar(100)
declare test_cur cursor for
select object_name(id) from sysobjects
where type =’U’
open test_cur
fetch test_cur into @tablename
while @@fetch_status=0
begin
DBCC DBREINDEX(@tablename)
fetch test_cur into @tablename
end
close test_cur
deallocate test_cur
go
—–自增列的修复use hbposv8 –可改成相应的数据库名
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