ImageVerifierCode 换一换
格式:DOCX , 页数:13 ,大小:335.53KB ,
资源ID:16239607      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/16239607.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(用友t3升级报错列名cmemo无效和对象名dbost calbeginvage无效Word文档格式.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

用友t3升级报错列名cmemo无效和对象名dbost calbeginvage无效Word文档格式.docx

1、5CA ierwrt啊韵说 , ., 世価面1诵曹RH鮭曲解巨!“时巳鮎刊: 難斟I* “ ) declare strlnvAge nVarchar(4000) declare strSQLln nVarchar(4000) declare strSQLOut nVarchar(4000) declare strNewRecord nVarchaT(4000)declare strSql nVarchar(200)declare sSQL nVarchar(200) declare sBegdate As nVarchar(2CX)iCou int请在数据库2008中执行文件:对象名dbo.S

2、T_CalBeglnvAge无效.sql步骤如下1在开始程序的打开SQL2008如图点连接进入选文件/打开/文件,路径 用友相关点执行就行了附: 数据库语句- 账套 005年度为 2014 升级时,软件报错对象名 dbo.ST_CalBegInvAge 无效 - 请执行以下语句use ufdata_005_2014alter table MatchVouch add bReqAnalyse bit,dIssueDate varchar(16)GO/* 对象 : StoredProcedure dbo.ST_CalBegInvAge 脚本日期 :08/15/2014 13:12:13 */SET

3、 ANSI_NULLS ONSET QUOTED_IDENTIFIER ON- 计算上年结存库龄CREATE PROCEDURE dbo.ST_CalBegInvAgecDBName Varchar(20), - 上一个账套名称CurrentDate Datetime, - 计算日期cCurDBName varchar(20) - 当前账套名称AsDeclare strLeftQty nVarchar(4000)declare cWhCode nvarchar(50)declare cInvCode nvarchar(50)declare cBatch nvarchar(50)declare

4、cFree1 nvarchar(120)declare cFree2 nvarchar(120)declare iQtty floatdeclare iNum floatdeclare autoId intdeclare iVouchQtty floatdeclare iVouchNum floatdeclare iTempQtty floatdeclare iTempNum floatdeclare strSQLInvAge nVarchar(4000)declare strInvAge nVarchar(4000)declare strSQLIn nVarchar(4000)declare

5、 strSQLOut nVarchar(4000)declare strNewRecord nVarchar(4000)declare sSQL nVarchar(200)declare sBegdate As nVarchar(200)declare iCou int- 取库存启用日期Set sBegdate = Nselect StockStartDate = cast(cValue as Datetime) from +cDBName + .accinformation + Where cSysid=ST and cName= dSTStartDateexec sp_executesql

6、 sBegdate,NStockStartDate datetime output, StockStartDateoutputIf StockStartDate is NullBeginReturnEnd- 计算本期当前结存Set strNewRecord = NInsert Into +cDBName+.STStockAgeTempTable(autoid, iqtty,inum)values(autoid, iTempQtty, iTempNum) set strLeftQty = SELECT cWhCode,cInvCode,IsNull(cBatch,) As cBatch,IsNu

7、ll(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 iNumFrom( Select bRdFlag, cWhCode, cInvCode, iQuantity, INum, cBatch, cFree1, cFree2From + cDBName+.ST_BegInvAgeUnion ALLSele

8、ct R.bRdFlag, R.cWhCode, Rs.cInvCode, Rs.iQuantity, Rs.INum, Rs.cBatch, Rs.cFree1,Rs.cFree2 + cDBName+ .RdRecord R inner join .RdRecords Rs on R.id = Rs.idWhere R.dDate = StartDate And R.dDate = CurrentDate And cVouchType 33 And cVouchType 0) or (d.bRdFlag 1 and ds.iQuantity = StartDate and d.dDate

9、= CurrentDate and d.cWhCode = cWhCodeand ds.cInvCode = cInvCode and IsNull(ds.cBatch,) = cBatch and IsNull(ds.cFree1,) = cFree1and IsNull(ds.cFree2,) = cFree2) Xorder by dDate Desc,AutoID Desc for read only Set strSQLIn = N declare curInvIn insensitive cursor for + strSQLInset strLeftQty = Ndeclare

10、curRd cursor for + strLeftQty execute sp_executesql strLeftQty,NCurrentDate Datetime, StartDate Datetime, CurrentDate, StockStartDateopen curRdfetch next from curRd intocWhCode,cInvCode,cBatch, cFree1,cFree2,iQtty, iNum- 建立计算结果临时表Set sSQL = Nselect Num = count(1) from + cDBName +.sysobjects Wherenam

11、e = STStockAgeTempTableexec sp_executesql sSQL,NNum int output, iCou outputIf iCou 0Exec ( Drop Table + cDBName+.STStockAgeTempTable) Create Table .STStockAgeTempTable (autoId int ,iQtty float,iNum float)-sp_help ST_BegInvAgewhile fetch_status = 0beginif(iQtty 0 ) set iQtty = 0if(iNum 0 or round(iNu

12、m,6) 0) and fetch_status =0if Round(iQtty, 6) Round(iVouchQtty, 6)set iTempQtty = iVouchQttyset iQtty = Round(iQtty, 6) - Round(iVouchQtty, 6) endelse beginset iTempQtty = iQttyset iQtty = 0.0 endif Round(iNum, 6) Round(iVouchNum,6)set iTempNum = iVouchNumset iNum = Round(iNum, 6) - Round(iVouchNum,

13、 6) endset iTempNum = iNumset iNum = 0.0 end- 增加计算结果execute sp_executesql strNewRecord,autoid int, iTempQtty float, iTempNum float, autoid, iTempQtty, iTempNumfetch next from curInvIn into autoid, iVouchQtty, iVouchNum endclose curInvIndeallocate curInvInfetch next from curRd into cWhCode,cInvCode,c

14、Batch,cFree1,cFree2,iQtty, iNum endclose curRddeallocate curRd- 将结果数据输出set strSQLInvAge =NSelect ID, bRdFlag,cVouchType,cWhCode ,dDate , cCode,cRdCode,cDepCode ,cPersonCode ,cVenCode ,cHandler ,cMemo ,cMaker ,cDefine1 ,cDefine2 ,cDefine3 ,cDefine4 ,cDefine5 ,cDefine6 ,cDefine7 ,cDefine8 ,cDefine9 ,c

15、Define10 , RT.AutoID ,cInvCode,(case when x.bRdFlag = 0 then -1 * RT.iNum else RT.iNum end) As iNum,(case when x.bRdFlag = 0 then -1 * RT.iQtty else RT.iQtty end)As iQuantity ,iUnitCost ,iPrice ,cBatch,cFree1 ,cFree2 ,dVDate ,cDefine22 ,cDefine23 ,cDefine24 ,cDefine25 ,cDefine26 ,cDefine27 ,cItem_cl

16、ass , cItemCode ,cName ,cItemCNameInto + cCurDBName+.STStockAgeTempTable RT Inner Join ( Select ID, bRdFlag,cVouchType,cWhCode ,dDate , cCode,cRdCode,cDepCode ,cPersonCode ,cVenCode , cHandler ,cMemo ,cMaker ,cDefine1 ,cDefine2 , cDefine3 ,cDefine4 ,cDefine5 ,cDefine6 ,cDefine7 , cDefine8 ,cDefine9

17、,cDefine10 ,AutoID ,cInvCode, iNum ,iQuantity ,iUnitCost ,iPrice ,cBatch,cFree1 , cFree2 ,dVDate ,cDefine22 ,cDefine23 ,cDefine24 , cDefine25 ,cDefine26 ,cDefine27 ,cItem_class , cItemCode , cName ,cItemCNameUnion AllSelect R.ID, bRdFlag,cVouchType,cWhCode ,dDate , cCode,cRdCode,cDepCode ,cPersonCod

18、e ,cVenCode , cHandler ,cMemo ,cMaker ,cDefine1 ,cDefine2 , cDefine3 ,cDefine4 ,cDefine5 ,cDefine6 ,cDefine7 , cDefine8 ,cDefine9 ,cDefine10 ,AutoID ,cInvCode, iNum ,iQuantity ,iUnitCost ,iPrice ,cBatch,cFree1 , cFree2 ,dVDate ,cDefine22 ,cDefine23 ,cDefine24 , cDefine25 ,cDefine26 ,cDefine27 ,cItem

19、_class , cItemCode , cName ,cItemCName.RdRecords Rs inner join .RdRecord ROn (R.ID = Rs.ID)Where dDate = StartDate And dDate = Curre ntDate And cVouchType A nd cVouchType ”34”)X On RT.autold = X.autoldexecute sp_executesql strSQLI nv Age,Curre ntDate Datetime, StartDate DatetimeCurre ntDate,StockSta

20、rtDate然后再回到系统管理/系统/升级SQL SERVE数据阳1己件】选择005账套的20142015年度,升级提示成功蜃T卜辰诗百蓉黑粋RlftcSI lM5fAj予融 丁控制告血羽新I沽!tiiVg宣V Kftaid3!底加4 .蒯匕息刊犯尊t r fiF -.UM 1R- Adnir H-V .斗乍4.血口| It-S i(FSEE*TEIB,如果出现以下情况:列名cMem(无效请执行这个文件 : 更新数据库 MatchVouchs.sql-账套116年度为2016升级时,软件报错列名cMem(无效- 请执行以下语句USE UFDATA_116_2016alter table MatchVouchs add cMemo varchar(255) NULL

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1