error converting data type varchar to numeric c#

  • Thread starter Thread starter vixyv
  • Start date Start date
V

vixyv

Guest
SqlConnection connn = new Sql Connection(conString);

connn.Open();

if (connn.State == System.Data.ConnectionState.Open)

{

string q = "Insert into CashIn values ('" + cidTP.Value.ToString("yyy-MM-dd") + "','" + tbtr.Text.ToString() + "')";

SqlCommand cmd = new SqlCommand(q, connn);

cmd.ExecuteNonQuery();

}

Continue reading...
 
Back
Top