Hola grupo,
Estoy intentando realizar la siguiente funcion y no entiendo el mensaje
de error que obtengo
CREATE FUNCTION ContratoTimestamp
(
@idContrato int,
@timestamp timestamp
)
RETURNS int
AS
BEGIN
declare @contador int
DECLARE tmp CURSOR FOR Select count(*) as contador from tblContrato
Where idContrato = @idContrato and idVersion = @timestamp
OPEN tmp
FETCH NEXT FROM tmp INTO @contador
CLOSE tmp
DEALLOCATE tmp
RETURN @contador
END
el mensaje de error es: "La peticion Commit Transaction no tiene la
correspondiente begin transaction"
Saludos y gracias
Leer las respuestas