Failed to Enable Contraints

G

Guest

When attempting to fill a dataset using SQLDataAdapter I get the following
error message.

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

The stored procedure used here can be successfully ran in Query Analyzer. I
don't see any duplicate PK's in the records.
What could be causing this? Thanks.
 
G

Guest

Thanks...Found the error

Miha Markic said:
Hi,

Loop through all rows and check their RowError property.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
SLODUG - Slovene Developer Users Group
www.rthand.com

MrMike said:
When attempting to fill a dataset using SQLDataAdapter I get the following
error message.

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

The stored procedure used here can be successfully ran in Query Analyzer.
I
don't see any duplicate PK's in the records.
What could be causing this? Thanks.
 

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