SqlConnection myConnection = new SqlConnection(Environment.GetEnvironmentVariable("SqlDbConnectionString"));
myConnection.Open();

SqlCommand myCommand = new SqlCommand();
myCommand.Connection = myConnection;
myCommand.CommandText = "UPDATE tblTable01 SET IsEmailSent=1 WHERE Id = " + dtList.Rows[i][""];
myCommand.ExecuteNonQuery();

myConnection.Close();
Last modified: March 29, 2021

Author

Comments

Write a Reply or Comment