Source:microsfot DLE DB Provider for SQL server

Detail:违反了 PRIMARY KEY 的约束"PK_CashFlowBal"不能在对象"dbo.t_CashFlowBal" 中插入重复键
在PK_CashFlowBal表中如何查找重复键呢???

在查询分析器中选择对应的数据库,
输入:
delete from t_cashflowbal where fvoucherid in (select fvoucherid from
t_voucher where month(fdate)=<出错的期间,如:01>)

删除重复数据就可以了