Ver Mensaje Individual
  #4 (permalink)  
Antiguo 17/08/2011, 10:35
Avatar de galletica12
galletica12
 
Fecha de Ingreso: mayo-2011
Ubicación: Tekax, Yucatán
Mensajes: 213
Antigüedad: 13 años
Puntos: 8
Pregunta Respuesta: Error en mi procedimiento

No me funciono tu ejemplo y cree otro:

Código:
set ANSI_NULLS ON
set QUOTED_IDENTIFIER ON
GO
ALTER PROCEDURE [dbo].[DescontarElProducto]
(
    @Cantidad Numeric,
    @cod int
)
AS
    SET NOCOUNT OFF;
UPDATE       Producto
SET                Cantidad = Cantidad - @Cantidad
WHERE        (IdProducto = @cod)
pero al abrir mi formulario de venta me manda un error que dice el procedimiento almacenado o la funcion no pudo controlar el parametro @Cantidad.

espero puedan ayudarme.
__________________
Info y Servicios http://www.pc-land.webege.com/ Saludos...:adios:.