Hi I am trying to commit the following value ("HatMark K.K.") to the database but keep getting an exception.
command.CommandText = "UPDATE tb_Entries Name = @Name WHERE ID = @ID";
command.CommandType = CommandType.Text;
command.Parameters.AddWithValue("@ID", bc.ID);
command.Parameters.AddWithValue("@Name", bc.Name);
Exception:
Database Commit ErrorSystem.Data.SqlClient.SqlException: Incorrect syntax near 'Name'.
If anyone can point out where I am going wrong, I'd much a appreciate it.