I need to update a field of a record in my sql database using two conditions
I'm trying to do it in the following way
sql = "UPDATE detalle_pedido SET cant_ingresar = '" + Convert.ToDecimal(TextBoxCantidadCargar.Text.Trim()) + "' where codigobarras = '" + codigo + "' AND idpedido='" + idpedido + "'";
but I did not manage to do the update.
What should I modify to do so?