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

G

googler

Hi,
I get the message "Failed to enable constraints. One or more rows
contain values violating non-null, unique, or foreign-key constraints."

All the keys are intact and this problem pops up when there is a
dataset.merge(dataset).

The has errors gives false and the geterrors returns nothing.

can some one throw some light?
Thanks
Sri
 
G

googler

Solved it. How ever, it is not easy to zero down on the problem.

1. Check the tables in all the datasets
2. check the stored procs
3. run the stored procs.. In most cases, the triggers behind the tables
or the stored procs inside the stored procs are the culprits.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top