I can run the program and step through the code and it is showing the right query data, but whenever the process is complete the changes are not committed in the database, I am needing to change teh value of grouping with this web app but the changes are not taking, can anyone give me any pointers on why my data isn't committing, thanks. Here is the method:
if (isUpdatePass)
{
oconn.Open();
updatessql = "update openquery(trimcellat01,'Select GROUPING from WORKCELL.COMPONENT_MATERIAL_ID where MATERIAL_ID = ''{1}''')SET GROUPING = '{0}; COMMIT; END;'";
// CommitTransaction
updatessql = string.Format(updatessql, this.RadioButtonList1.SelectedValue.ToString(), TextBox1.Text.ToUpper());
ocmd.CommandText = updatessql;
ocmd.Connection = oconn;
ocmd.ExecuteNonQuery();
errormessage.Text = "Material ID grouping has been changed";
Session["LookupPass"] = "1";
Session["UpdatePass"] = "0";
Session.Remove("Material_ID");
ocmd.Dispose();
oconn.Close();
oconn.Dispose();
return;
}