HI,
Insetead of using the code like:
SqlDataAdapter sa = new SqlDataAdapter();
sa.InsertCommand = new SqlCommand("insert into Table_1(SensorValue)",sqlconn);
sa.InsertCommand.Parameters.Add("@SensorValue", SqlDbType.Int).Value = SensorValue.Text;
Use like:
SqlDataAdapter sa = new SqlDataAdapter();
string query = "insert into Table_1(SensorValue) values(" + SensorValue.Text + ")";
sa.InsertCommand = new SqlCommand(query ,sqlconn);
Thanks