异常用户清理脚本
脚本包含k3,KIS 两类产品。如果执行的时候报错 对象名 'XX' 无效请注释该行继续执行下面的行即可。用户异常使用异常清理工具无效的使用下面脚本去试试。
delete ICClassUserProfile WHERE FUserID=(select FUserID from t_user where Fname='用户名')
delete ICClassUserProfileEntry where Fschemeid not in(select Fschemeid from ICClassUserProfile )
delete ICSchemeProfile WHERE FUserID=(select FUserID from t_user where Fname='用户名')
delete ICSchemeProfileEntry where Fschemeid not in(select Fschemeid from ICSchemeProfile)
delete t_UserProfile WHERE FUserID=(select FUserID from t_user where Fname='用户名')
delete ICReportProfile WHERE FUserID=(select FUserID from t_user where Fname='用户名')
delete ICBillNote where FPreparerId =(select FUserID from t_user where Fname='用户名')/*套打*/
delete ICReportFormat WHERE FUserID=(select FUserID from t_user where Fname='用户名')
delete ICBillFormat WHERE FUserID=(select FUserID from t_user where Fname='用户名') /*与t_UserSetting一起设置打印,非套打*/
delete t_UserSetting WHERE FUserID=(select FUserID from t_user where Fname='用户名')/*与ICBillFormat一起设置打印,非套打*/
delete ICClassUserProfileEntry where Fschemeid not in(select Fschemeid from ICClassUserProfile )
专业版没有这两个表,我查了下有
delete ICClassProfileEntry where Fschemeid not in(select Fschemeid from ICClassProfile )
但有没有风险不知道
这个不要乱发啊,不是对应问题,随便执行脚本只会导致你帐套出错
异常用户清理脚本
本文2024-09-16 19:19:40发表“kis知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-kis-27887.html