Hi Guys,
Is there a way I can return a recordset from a stored procedure. An example would help.
E.g (part of the procedure)
CREATE PROCEDURE Get_OrderRecords_By_Criteria (@fromDate smalldatetime,
@toDate smalldatetime, @type varchar(10) OUTPUT) AS
--Am not sure of this
DECLARE @Rst As Recordset
--If it's possible how would i get set the Rst to records returned
--below
Select fldDate,fldName
FROM tblOrderRecords
Where fldDate > @fromDate AND fldDate < @toDate
RETURN Rst
Please Help
LION OF JUDDAH!