【问】数据下传报错:目标数据写入错误,如何解决? | ||
【适用版本】商锐9.5 | 【模块】常见问题 | 【点击数】88 |
【知识编号】P2017112900003 | ||
【问题描述】数据上传正常,但数据下传报错:目标数据写入错误。请处理。 |
use hbposev9 –数据库名请根据修复的数据库进行更换。
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