P
PinkGuava
Hi,
I have a T-SQL stored procedure that returns both output parameters
and a recordset. How do I retrieve them in my ASP script? As far as I
know, the ADO Command object can be used to retrieve the output
parameters, but will I be able to retrieve the recordset using the
Command object as well? Or do I have to use the Recordset object?
Example of stored procedure:
CREATE PROCEDURE p_GetTestSites
(
@Proceed CHAR(1) OUTPUT,
@ErrMsg VARCHAR(300) OUTPUT
)
AS
BEGIN
SET NOCOUNT ON
/*
some data processing done here
*/
SET @Proceed = 'Y'
SET @ErrMsg = 'Error message'
SELECT TestSite FROM #TestSites
RETURN 0
END
I have a T-SQL stored procedure that returns both output parameters
and a recordset. How do I retrieve them in my ASP script? As far as I
know, the ADO Command object can be used to retrieve the output
parameters, but will I be able to retrieve the recordset using the
Command object as well? Or do I have to use the Recordset object?
Example of stored procedure:
CREATE PROCEDURE p_GetTestSites
(
@Proceed CHAR(1) OUTPUT,
@ErrMsg VARCHAR(300) OUTPUT
)
AS
BEGIN
SET NOCOUNT ON
/*
some data processing done here
*/
SET @Proceed = 'Y'
SET @ErrMsg = 'Error message'
SELECT TestSite FROM #TestSites
RETURN 0
END