i have created an application, there i have try to save the data from multiline text box to data base. But it will shown a error like
“String or binary data would be truncated.The statement has been terminated.”
why it will come, what should i do for store data from multiline textbox.
this is the code i have given for store the data for multiline textbox.
cmd.Parameters.AddWithValue("@spec", TextBox3.Text);
That would happen because the Varchar lenght is less than the size of
TextBox3.TextWhich is the lenght of the field ? For example, if is
Varchar(5)andTextBox3.Textis"abcdef"you can’t insert the text because it will be truncated