dseaver
IS-IT--Management
- Jul 13, 2006
- 467
Code:
System.Data.ConstraintException was unhandled by user code
Message="Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."
Source="System.Data"
I get the above error when trying to use an API we have developed to try to get a table from a SQL database. When developing the API, "preview data" works just fine and returns the table I need. Other functions in the API work fine without the constraint exception being thrown. Is there a way I can narrow down where the exception being thrown or allow the table to be pulled down from the DB? Thanks