Please rate if this code is workvb Code:
//Surely this code will work, try this code SqlConnection con = new SqlConnection("type your connection string"); con.Open(); string qry="insert into tablename(name,age,mobile) values('ravi',25,1234454)"; SqlCommand cmd = new SqlCommand(qry, con); cmd.ExecuteNonQuery();




Reply With Quote