Updating MS Excel. OldeDbException: No value given for one or more required parameters. What is wrong in the below code,
private string _connString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=C:\\Workspace\\TestSet.xls;Mode=Share Deny None;Extended Properties=\"Excel 12.0;HDR=YES;READONLY=FALSE\"";
OpenConnection();
using (OleDbCommand objConfigCmdUpdate = new OleDbCommand("UPDATE [Config$] SET Enabled='1' WHERE TestSuite='CFTS'", ExlConn))
{
objConfigCmdUpdate.ExecuteNonQuery();
CloseConnection();
}
What is wrong in this code?