Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Here is a textbox( dev express) which allow 60 characters not more than that, but while i enter total 60 characters.

datatype is nvarchar(60),

The inner exception is raised
C#
String or binary data would be truncated.\r\nThe statement has been terminated

It is allowed to add 51 characters as i am digging here, as i enter 52nd character & click save it raise an exception

with the help of counting characters.
Cut & Paste Character count
Posted
v2
Comments
Ali_100 20-Mar-13 10:54am    
I was facing the mistake ,,, due to the another table which is using the column name of the above table..... & have adding some prefixes, due to this i was facing the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900