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

日结问题

【问】日结问题
【适用版本】商云8 【模块】 【点击数】132
【知识编号】72017111600006
【问题描述】日结失败提示:错误信息:-1 不能在具有唯一索引‘i-da-jxc-daysum-5’的对象‘dbo 1-da-jxc-daysum’中插入重复键的行 

【答】 此问题说明数据库损坏,请使用DBCC检查数据库是否损坏,若损坏,请在合作伙伴设置下载数据库修复文档进行修复,若检查正常,请备份数据库执行:
—修复索引
use hbposv8     —-分店改为hbposv8_branch
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

赞(0)
未经允许不得转载:思迅软件知识库 » 日结问题

评论 抢沙发

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