问题:KIS旗舰版3.0帐套升旗舰版5.0提示出错。
数据库升级失败!SQL文件不全或SQL语句有误!
错误描述:违反了 PRIMARY KEY 约束 'pk_ICTableRelation'。不能在对象 'dbo.ICTableRelation' 中插入重复键。
Sql文件名:C:\PROGRAM FILES (X86)\KINGDEE\KISERP\KISEXPRESS\KDSYSTEM\KDCOM\SqlSrv\SP_KISUEV5.0ECTemplateBos.sql
Sql内容:
--[NO SQL FILE INFOMATION]
--销售订单下推销售出库单,下推销售发票,要携带销售订单的结算方式
DELETE ICSelbills WHERE FID = 'I04' AND FFieldName = 'FOutStockInterID' AND FDstCtlField='FSettleID'
INSERT INTO ICSelbills(FID, FFieldName, FDstCtlField, FSelType, FDK, FColName, FName, FTableName, FTableAlias, FAction, FROB, FAllowEdited )
VALUES (N'I04', N'FOutStockInterID', N'FSettleID', 2, 2, N'FSettleID', N'FItemID', N't_Settle', N'tSettle', N'', 0, 0 )
INSERT INTO ICSelbills(FID, FFieldName, FDstCtlField, FSelType, FDK, FColName, FName, FTableName, FT
...
推荐阅读