I have field in sql tbl as numeric data type (numeric(18,0) but in c# code when i save data
display this message "
Arithmetic overflow error converting numeric to data type varchar.The statement has been terminated."
As follow code c#
SqlCommand cmd = new SqlCommand("CashPlan_Insert", Conn);
cmd.Parameters.Add("@CarNo", SqlDbType.VarChar).Value = (DropDownList1.SelectedValue);
cmd.CommandType = CommandType.StoredProcedure;
Conn.Open();
cmd.ExecuteNonQuery();
Conn.Close();

Tapan PatelPosted Aug 17, 2016, 10:20 AM
Midhun TpPosted Aug 17, 2016, 10:12 AM
Abdalla ElawadPosted Aug 17, 2016, 9:15 AM
Abdalla ElawadPosted Aug 17, 2016, 8:58 AM
Bikesh SrivastavaPosted Aug 17, 2016, 8:46 AM
Abdalla ElawadPosted Aug 17, 2016, 7:59 AM
Abdalla ElawadPosted Aug 17, 2016, 7:44 AM
Midhun TpPosted Aug 17, 2016, 7:25 AM
Abdalla ElawadPosted Aug 17, 2016, 7:03 AM
Abdalla ElawadPosted Aug 17, 2016, 6:53 AM
Midhun TpPosted Aug 17, 2016, 6:45 AM
Vinay SinghPosted Aug 17, 2016, 6:39 AM