troubleshooting Question

VB does not refresh database change

Avatar of esps
esps asked on
Microsoft SQL Server.NET ProgrammingVisual Basic.NET
3 Comments1 Solution328 ViewsLast Modified:
I picked up a strange situation. Strange to me anyway.
My environment is VB 2005 and SQL 2005.
One of my bound textfields were defined in the database as nvarchar(10).
The worked perfectly initally until the 10 characters became too little and I needed to increase the lenght.
The app started returning the error:
The value violates the Maxlenght limit of this column.
The interesting part is when I changed the data type and lenght to nvarchar(50), VB ignores this change and retains the original Maxlength of 10 in the Dataset auto generated code.
I have tried to refresh, clean, rebuild, etc. but no luck.
I have also deleted the bound textbox from the form and inserted and bound it again. Still no luck.
Any ideas of what I should do in such a case?

regards
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros