I am new to C#. I have established a connection to a SQL Server data source...
SqlConnection conn = new SqlConnection("server="+strDBServer+";database="+strDBName+";trusted_connection=yes");
All I want to do is execute a simple query against the db.
For example: "Update products set value = value * 1.1"
I have tried the oledbcommand with zero results.
OleDbCommand OleDb = new OleDbCommand();
OleDb.CommandText = "Update products...";
OleDb.Open();
results = OleDb.ExecuteNonQuery();