wwechopper1
Programmer
What SQLCommand method executes an SQL Insert statement?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SqlConnection oConn = new SqlConnection();
oConn.ConnectionString = "your database/logon credentials";
oConn.Open();
SqlCommand cmd = new SqlCommand();
cmd.Connection = oConn;
cmd.CommandText = "insert into myTable some data";
cmd.ExecuteNonQuery();