关键词不能为空

当前您在: 主页 > 英语 >

用友T3升级报错列名cMemo无效和对象名dbo.ST_CalBegInvAge无效

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-02-09 07:03
tags:

-

2021年2月9日发(作者:防护套)


用友


T3


恢复升级步骤



1




账套恢复



恢复账套之前,请确认账套号和账套路径是否按要求更改



比如:账套号为


005


,恢复路径为:


E:UFSMARTAdmin



2




升级账套




选择需要升级的账套及年度,并确认




A


如果出现以下情况


:


对象名


_CalBegInvAge


无效

< p>



请在数据库


2008


中执行文件:对象名


_CalBegInvAge


无效


.sql


步骤如下


< /p>


1


在开始程序的打开


SQL2008,< /p>


如图





点连接进入




选文件


/


打开


/

文件


,


路径


: D:


用友相关






点执行就行了



:


数据库语句



--


账套


005


年度为


2014


升级时,软件报错对象名


_CalBegInvAge


无效



--


请执行以下语句



use ufdata_005_2014


alter table MatchVouch add bReqAnalyse bit,dIssueDate varchar(16)



GO



/******


对象


:



StoredProcedure


[dbo].[ST_CalBegInvAge]





脚本日期


:


08

/15


/


2014


13:12:13 ******/



SET ANSI_NULLS ON



GO



SET QUOTED_IDENTIFIER ON



GO






--


计算上年结存库龄




CREATE PROCEDURE [dbo].[ST_CalBegInvAge]



@cDBName Varchar(20),





--


上一个账套名称





@CurrentDate Datetime,





--


计算日期




@cCurDBName



varchar(20)





--


当前账套名称




As






Declare @strLeftQty nVarchar(4000)






Declare @StockStartDate datetime



declare @cWhCode nvarchar(50)



declare @cInvCode nvarchar(50)



declare @cBatch nvarchar(50)



declare @cFree1 nvarchar(120)



declare @cFree2 nvarchar(120)



declare @iQtty float



declare @iNum float






declare @autoId int



declare @iVouchQtty float



declare @iVouchNum float



declare @iTempQtty float



declare @iTempNum float






declare @strSQLInvAge nVarchar(4000)



declare @strInvAge nVarchar(4000)



declare @strSQLIn



nVarchar(4000)



declare @strSQLOut nVarchar(4000)



declare @strNewRecord nVarchar(4000)






declare @strSql nVarchar(200)



declare @sSQL



nVarchar(200)



declare @sBegdate As nVarchar(200)






declare @iCou int






--


取库存启用日期




Set


@sBegdate


=


N'select


@StockStartDate


=


cast(cValue


as


Datetime)



from


'


+


@cDBName + '..accinformation ' + ' Where cSysid=''ST'' and cName= ''dSTStartDate'' '






exec


sp_executesql


@sBegdate,N'@StockStartDate


datetime


output',


@StockStartDate


output







If @StockStartDate is Null




Begin



Return




End






--


计算本期当前结存







Set @strNewRecord = N'Insert Into ' +@cDBName+'..STStockAgeTempTable(autoid, iqtty,


inum)




values(@autoid, @iTempQtty, @iTempNum) '



set @strLeftQty =



' SELECT cWhCode,



cInvCode,



IsNull(cBatch,'''') As cBatch,



IsNull(cFree1,'''') As cFree1,



IsNull(cFree2,'''') As cFree2,



SUM(case when bRdFlag = 1 then iQuantity else -iQuantity end) as iQtty,



SUM(case when bRdFlag = 1 then iNum else - iNum end) AS iNum




From(



Select bRdFlag, cWhCode, cInvCode, iQuantity, INum, cBatch, cFree1, cFree2



From '+ @cDBName+'..ST_BegInvAge




Union ALL



Select g, e, de, ity, , , 1,


2


-


-


-


-


-


-


-


-



本文更新与2021-02-09 07:03,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/619618.html

用友T3升级报错列名cMemo无效和对象名dbo.ST_CalBegInvAge无效的相关文章

用友T3升级报错列名cMemo无效和对象名dbo.ST_CalBegInvAge无效随机文章