This issue took me a day to figure out! Hopefully the tips below will help someone else. I've found that it is caused by one of three things:
1. You modified the size of a column in your database but did not update the 'MaxLength' property column your visual studio project (data designer/ xsd file. 2. You have a mismatch between a column's type in your database and it's type in your visual studio project. 3. The number of columns in your TableAdapter "SELECT" query does not match the number of columns being returned by the "SELECT" query which is causing the exception.
1. You modified the size of a column in your database but did not update the 'MaxLength' property column your visual studio project (data designer/ xsd file.
2. You have a mismatch between a column's type in your database and it's type in your visual studio project.
3. The number of columns in your TableAdapter "SELECT" query does not match the number of columns being returned by the "SELECT" query which is causing the exception.
I found following articles useful in solving this problem:
Please help us improve by rating and commenting on this post.
Be the first to rate this post
Tags: c#, .net, enableconstraints, dataset, visual studio 2005, tableadapter
Software Development
Powered by BlogEngine.NET 1.4.5.0 Theme by Mads Kristensen