【问】会员消费明细输入了会员以后查询就卡死 | ||
【适用版本】医药之星7 | 【模块】基础业务 | 【点击数】15 |
【知识编号】Z2015092300002 | ||
【问题描述】会员消费明细输入了会员以后查询就卡死 |
—修复索引
use hbmsv7
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