This might be simple, but…..
I have a view that includes a text area: @Html.TextAreaFor(model => model.ContactInfo)
Without any new lines or using @Html.EditorFor, everything works smoothly. When I type an address for example…
John Doe
1 Right Way
New York, NY
…the following inner exception occurs:
"String or binary data would be truncated.\r\nThe statement has been terminated."
How do I go about resolving this?
Curt hit the nail on the head. I only had a
varchar(10)in that field. Silly me.Lesson learned: “See what a specific field can take before jumping to conclusions.”