Simply missing the equal sign here
cmdText = "Update HolidaysDetails set Deleted=@deleted " +
"where HolidayNum=" + holidayNum;
^
By the way, while you are trying to follow the correct practices and use a parameter for the @deleted
flag, you are doing it wrong. AddWithValue requires, as second parameter, the value not the parameter type. While at fixing it, add also the second parameter required by the query
cmdText = "Update HolidaysDetails set Deleted=@deleted " +
"where HolidayNum=@num";
......
cmd.Connection = con;
cmd.CommandText = cmdText;
cmd.Parameters.AddWithValue("@deleted", "Y");
cmd.Parameters.AddWithValue("@num", holidaynum);
cmd.ExecuteNonQuery();
....