E
Ernesto Tejeda
Hello everyone
(VS 2k3 + SQLSRV 2K)
I've been having troubles trying to make a data relation work. I have seven
tables related to an eighth one. I created the relation visually using the
XML Designer but for some strange reason the relations fail and when I try
to preview the data in the Data Adapter Preview for one of the child tables
it gives the exception:
"Failed to enable constraints. One or more rows contain values violating non
null, unique or foreign-key constraints"
The same error message happens when I try to fill the data adapter at
runtime.
I just don't get it. I've recreated the relations many times. recreated all
the data adapters. recreated the data source. recreated the component that
holds the data adapters and the data source. recreated every thing many
times. tested with just one data adapter. with two. and sometimes it works
just fine. others don't.
Any hints?
(VS 2k3 + SQLSRV 2K)
I've been having troubles trying to make a data relation work. I have seven
tables related to an eighth one. I created the relation visually using the
XML Designer but for some strange reason the relations fail and when I try
to preview the data in the Data Adapter Preview for one of the child tables
it gives the exception:
"Failed to enable constraints. One or more rows contain values violating non
null, unique or foreign-key constraints"
The same error message happens when I try to fill the data adapter at
runtime.
I just don't get it. I've recreated the relations many times. recreated all
the data adapters. recreated the data source. recreated the component that
holds the data adapters and the data source. recreated every thing many
times. tested with just one data adapter. with two. and sometimes it works
just fine. others don't.
Any hints?