T
Tommy
I am not quite familiar with how to handle a opened cursor from the store
procedure using SqlParameter class, how should I define the parameters. And
any special techniques?
My store procedure:
CREATE PROC usp_6_14_1
@vchTitleID VARCHAR(6) = ¡®%¡¯,
@curOrders CURSOR VARYING OUTPUT
AS
SET @curOrders = CURSOR FORWARD_ONLY STATIC FOR
SELECT title_id, stor_id, qty, ord_date
FROM sales
WHERE title_id LIKE @vchTitleID
ORDER BY ord_date
OPEN @curOrders
GO
Thanks in advance
procedure using SqlParameter class, how should I define the parameters. And
any special techniques?
My store procedure:
CREATE PROC usp_6_14_1
@vchTitleID VARCHAR(6) = ¡®%¡¯,
@curOrders CURSOR VARYING OUTPUT
AS
SET @curOrders = CURSOR FORWARD_ONLY STATIC FOR
SELECT title_id, stor_id, qty, ord_date
FROM sales
WHERE title_id LIKE @vchTitleID
ORDER BY ord_date
OPEN @curOrders
GO
Thanks in advance