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

SqlCommand myCommand = new SqlCommand("pr_UPDATE_Table", myConnection);
myCommand.CommandType = CommandType.StoredProcedure;
myCommand.Parameters.Add(new SqlParameter("@AppAlertId", dtList.Rows[i]["TableId"]));
myCommand.ExecuteNonQuery();

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

Author

Comments

Write a Reply or Comment