Friday, December 3, 2010

ASP.NET Datasets: Failed to enable constraints.

Got this error after changing the length of a column in the database:
Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.

The table adapter column maxlength is not updated automatically.

Update the table adapter column maxlength manually in the properties window for that column in the dataset editor.


No comments:

Post a Comment