二、解决方法
通过跟踪总结出,可用SQL快速删除账套。
只需1分钟,也无需硬盘空间。
如下步骤(只适用内部人员的本本上使用):
1、SQL分离UFDADA_999_2007、UFMeta_999_2007数据库
2、分离后删除UFDADA、UFMeta目录文件
3、用SQL清除999账套在UFSystem里的信息
1)消除999账套日志:
DELETE
FROM UA_LOG
where CACC_ID='999'
2)消除999账套年度会计期:
DELETE
FROM UA_Period
WHERE (cAcc_Id = '999')
3)消除999账套启用模块:
DELETE
FROM UA_Account_sub
WHERE (cAcc_Id = '999')
4)消除999账套:
DELETE
FROM UA_Account
WHERE (cAcc_Id = '999')
更正两点:
1、不用什么分离,删除了,直接用SQL删除
2、还需要清除ufsystem..ua_holdAuth表
完整如下:
drop database UFData_xxx_20XX
drop database UFMeta_xxx
delete from ufsystem..ua_log where cacc_id='XXX'
delete from ufsystem..ua_period where cacc_id='XXX'
delete from ufsystem..ua_account_sub where cacc_id='XXX'
delete from ufsystem..ua_holdAuth where cacc_id='XXX'
delete from ufsystem..ua_account where cacc_id='XXX'