parthiban karnan

parthiban karnan

  • NA
  • 549
  • 101.6k

String or binary data would be truncated.

Nov 14 2018 9:20 PM
i get dis error on form registration..it works locally fine but on server upload
i encounter dis error

String or binary data would be truncated.
The statement has been terminated.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: String or binary data would be truncated.
The statement has been terminated.

Source Error:


Line 170: SqlCommand cmd = new SqlCommand(sqlstr, con);
Line 171: con.Open();
Line 172: cmd.ExecuteNonQuery();
Line 173: con.Close();
Line 174:

Answers (6)