Hello all,
I'm new to C# and am having some trouble with an update query
The update works in Query Analyser but not on the page.
Any help is much appreciated
I'm new to C# and am having some trouble with an update query
Code:
// create DB connection
string mydbdsn="server=SERVER; database=DB; user id=USER; pwd=PW;";
SqlConnection connection = new SqlConnection(mydbdsn);
connection.Open();
strNewABS="UPDATE <TABLE> SET <COLUMN> = 'L' WHERE ID = 1";
SqlCommand updateCommand = new SqlCommand(strNewABS, connection);
updateCommand.ExecuteNonQuery();
The update works in Query Analyser but not on the page.
Any help is much appreciated