有问题文章留言 看内容决定收费与免费
另外接收数据库质疑 勒索病毒数据恢复等项目。

点击日结很慢,如何解决?

【问】点击日结很慢,如何解决?
【适用版本】商云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

赞(0)
未经允许不得转载:思迅软件知识库 » 点击日结很慢,如何解决?
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址