I have a stored procedure that gives me a recordset based on a salesman ID.
I would like to use this within a Cursor loop.
Declare SalesCursor Cursor
For Exec dbo.GetSales @SalesID, @StartDate, @EndDate
The SQL parser does not like this statement. Is there another way to do this?
Should I change the SP to a function?
Thanks,
Bryan Clauss