NiteCrawlr
Programmer
I have a stored procedure, created on SQL SERVER:
*******
CREATE PROCEDURE count_visao
@EMPLID char(11),
@RESULTADO numeric(11) output
AS
Set @resultado = 0
IF Exists( Select [EMPLID] FROM [PS_EM_ORG_VISAO_VW] WHERE ([MANAGER_ID] = @EMPLID))
BEGIN
SET @RESULTADO = '1'
END
ELSE
BEGIN
SET @RESULTADO = '0'
END
RETURN @resultado
*******
I know this is how I execute on Query Analyzer:
*******
DECLARE @resposta numeric (11)
EXEC count_visao foto2, @resultado = @resposta output
select @resposta
*******
How do I execute it from an Asp page, and I need the value @resultado have on the Asp page, how can I get that value?
*******
CREATE PROCEDURE count_visao
@EMPLID char(11),
@RESULTADO numeric(11) output
AS
Set @resultado = 0
IF Exists( Select [EMPLID] FROM [PS_EM_ORG_VISAO_VW] WHERE ([MANAGER_ID] = @EMPLID))
BEGIN
SET @RESULTADO = '1'
END
ELSE
BEGIN
SET @RESULTADO = '0'
END
RETURN @resultado
*******
I know this is how I execute on Query Analyzer:
*******
DECLARE @resposta numeric (11)
EXEC count_visao foto2, @resultado = @resposta output
select @resposta
*******
How do I execute it from an Asp page, and I need the value @resultado have on the Asp page, how can I get that value?