问题现象:如何用语句快速删除用友U8ERP软件中的帐套 ?因升级帐套太多,手工删除太慢
解决方案: 提供语句解决:
DECLARE @AccID char(3)
SET @AccId = '112'--在此修改账套号
USE UFSYSTEM
DELETE FROM UA_BackupLog WHERE cAcc_Id=@AccId
DELETE FROM UA_BackupPlans WHERE cAcc_Id=@AccId
DELETE FROM UA_BackupPlan WHERE cPlan_Id not in (select cPlan_Id FROM UA_BackupPlans)
DELETE FROM UA_HoldAuth WHERE cAcc_Id=@AccId
DELETE FROM UA_Auth WHERE cAcc_Id=@AccId
DELETE FROM UA_FlowItems WHERE cAccId=@AccId
DELETE FROM UA_FlowLines WHERE cAccId=@AccId
DELETE FROM UA_Identity WHERE cAcc_Id=@AccId
DELETE FROM UA_Account_sub WHERE cAcc_Id=@AccId
DELETE FROM UA_Log WHERE cAcc_Id=@AccId
DELETE FROM UA_Period WHERE cAcc_Id=@AccId
DELETE FROM UA_Account WHERE cAcc_Id=@AccId
DELETE FROM UA_Message WHERE Account=@AccId
DELETE GDP_JccpConfigure WHERE UF_DB_NAME=@AccId
USE master
DECLARE AccCur CURSOR
FOR SELECT NAME FROM sysdatabases
DECLARE @AccName varchar(40)
OPEN AccCur
FETCH NEXT FROM AccCur INTO @AccName
WHILE (@@fetch_status <>; -1)
BEGIN
IF (@@fetch_status <>; -2)
BEGIN
IF (left(@AccName,10)='UFDATA_' + @AccId) and len(@AccName)=15
BEGIN
EXECUTE sp_detach_db @AccName
--PRINT '账套库'+@AccName + '已分离!'
END
END
FETCH NEXT FROM AccCur INTO @AccName
END
CLOSE AccCur
DEALLOCATE AccCur
SELECT '账套'+@AccId+'删除完成!'
温馨提示:近期载地址失效频繁,如链接失效请点击此处查阅详情!
问题现象:用友U8直运销售不能参照销售订单生成?直运销售,录入了一笔销售订单数量为60,先参照此销售订单生成了一笔采购订单数量为40,再生成一笔数量为20的采购订单时参照不出来此问题原因:程序设计问题...
问题现象:用友软件,选择正确的套打选项,但套打出来的格式仍不对。?解决办法:模板参数提取错误,在“总账—设置—选项”,切换模板可解决问题。...
问题现象:用友U8审核、查询凭证错误 ?问题1:不能进行审核凭证操作。分析:(1)当前操作员没有进行此项操作的权限,审核凭证的功能菜单被隐藏。(2)所要审核凭证的筛选条件不满足实际情况,找不到欲审核的...
问题现象:用友U8年结后产生负数单据?原因分析:出现此现象是因为存货采用出库跟踪入库,在rdrecords表中,有些入库单上的累计出库数量并不等于对应出库单的出库数量的和,这种情况导致了年转后的数据不...
问题现象:购入库单单据设置时,表体中看不到金额一栏,在增加中没有,删除中有,表体中多了一项成本核算项目,无法删除。解决办法: 从模版库或者演示帐套中导入 InvoiceItema 表替换出现错误的数据...
问题现象:用友u8软件教程之帐套数据备份? 为了防止数据的丢失,我们就要对数据进行备份,在用友u8里面,用友U8软件提供了两种操作方式。 1.手工对帐套...