1.帐套结转时,提示t_subsys插入重复键
解决:
I、删除索引
alter table t_subsys drop constraint pk_subsys
II、t_rp_initial表中把FLimitDate字段设置可为空
III、结转操作,成功!
IV、重建索引(可选)
ALTER TABLE [dbo].[t_subsys] WITH NOCHECK ADD
CONSTRAINT [pk_subsys] PRIMARY KEY CLUSTERED
(
[Fsubsysid],
[Fyear],
[Fperiod]
)
CONSTRAINT [pk_subsys] PRIMARY KEY CLUSTERED
(
[Fsubsysid],
[Fyear],
[Fperiod]
)