Click here to Skip to main content
15,898,036 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C#
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.


What I have tried:

DataTable dt = new DataTable();
dt.Clear();
dt.Rows.Clear();
dt.Columns.Clear();
dt = taAttn_Consol_Trend.GetData(DateTime.Parse(dtpFromDate.DateTime.ToString("yyyy/MM/01")), DateTime.Parse(dtpToDate.DateTime.ToString("yyyy/MM/01")),"0",0,0,4,true);
Posted
Updated 19-Apr-16 19:53pm

1 solution

Hello,

Similar question was posted on CodeProject forum itself long back.
Please follow the below link.

Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.[^]

Read through. I hope that will help.
Thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900