Wednesday, December 06, 2006

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

Hi Developers,

since the developers are the only persons who are facing the first problems for any product and they have to find out a workaround for any thing or problem they face it.

this post to solve one of the major problems in dataset in VS 2005,as mentioned on the Post title.

the solution for this problem is to just add a new Table Adapter in your Dataset and configre it again,to minize the time,and not to waste the time for remembering which stored procedure or view you had changed.......

Cool Tip.......... :)

Regards,
Moustafa arafa

2 comments:

Anonymous said...

hi Mostafa,
may i ask u is this the only way...???

Unknown said...

Try to refresh the schema of the Dataset, this might be fixed with the latest service pack.