How to disable a Constrain

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi friends,
I have similar question. I am getting the well-known "Failed to enable
constraints. One or more rows
contain values violating non-null, unique, or foreign-key constraints."
message in one ASP .net application.
In order to get these "One or more rows", we have GetError method in
dataset, but I am dealing with tableadapter. I have created tableadapter
using wizard. I have no idea how to disable EnableConstraints property or use
GetError method in case of tableadapter created using wizard. (I have tried
ClearBeforeFill=true, but the problem persists)
Please help me to solve problem.

Thanks in advance,
-yogee
 
I am use the new feature of TableAdapter to develop a web application.
I use a ObjectDataSouce to link to a TableAdapter
The TableAdapter have two constrains.
How can I disable one of the contrain when the ObjectDataSouce get data?
 
Back
Top