知识资讯  > 知识学习

公司资讯 行业资讯 知识学习
2024优惠活动:迷你版1880元,KIS软件5折,金蝶云6折起!

金蝶KIS私有云常用SQL语句

售后技术专线:4006-6500-28

新购有特价、金蝶老客户升级金蝶云产品可以享受5折优惠,送手机、送话费,好礼不断!

一、专业版

1、清除管理员manager密码

update t_user set fsid=null where fname='manager'
go

或者在数据库实体里删除

数据库—实体—表—dbo.t-User右击编辑前两百行—manager清除

image.png

image.png

image.png


2、库存类语句

①不允许负库存出库

update t_systemprofile set fvalue=0 where fcategory='IC' and fkey='UnderStock'


②不允许负库存结账

update t_systemprofile set fvalue=0 where fcategory='IC' and fkey='UnderStockCalculate'


③允许负库存出库

update t_systemprofile set fvalue=1 where fcategory='IC' and fkey='UnderStock'


④允许负库存结账

update t_systemprofile set fvalue=1 where fcategory='IC' and fkey='UnderStockCalculate'


⑤库存保存更新

update t_systemprofile set fvalue=1 where fcategory='IC' and fkey='UPSTOCKWHENSAVE'


⑥库存审核更新

update t_systemprofile set fvalue=0 where fcategory='IC' and fkey='UPSTOCKWHENSAVE'


2、有PT202020补丁引起的问题

之前碰到过该问题的解决方案:
由于PT202020的补丁号较大,如果打过PT20202再打其他补丁,需要去数据库清除该补丁名称,同时在注册表中修改补丁号。
---1、清除补丁脚本:
delete  from  t_PatchLst where FPatch ='202020'
go
---2、注册表修改补丁号(路径):
运行→regedit→HKEY_LOCAL_MACHINE→SOFTWARE→Kingdee→KISPRODUCT→ServicePackVerson修改补丁号


二、旗舰版

1、清除账套管理admin密码

数据库中选中AcctCtl_KEE数据库,执行语句 update t_Users set FPassword = '' where FName = 'Admin'


2、清空工作台导航栏数据

Delete From t_AP_AppVisitInfo where FUserID in (select FUserID from t_User where Fname = '用户名称')


3、旗舰版用户异常,卡死执行语句

delete from t_userprofile where fuserid=(select fuserid from t_user where fname='异常用户')


三、商贸版

1、清除管理员manager密码

update t_user set FSID=null where FName='manager'


2、6.0清除日志语句

delete from t_log go

X金蝶软件公司_金蝶软件技术服务公司

截屏,微信识别二维码

客服QQ:1250556403

(点击QQ号复制,添加好友)

微信号已复制,请打开微信添加咨询详情!