0
In the oracle I can do as follows :
OPEN MY_CURSOR FOR 'SELECT * FROM MY_TABLE'
How to get this result in Sqlsever? I want to return a cursor by mounting a dynamic sql in the Procedure. I’m currently wearing it like this:
CREATE PROCEDURE MY_PROC(@PARAM INT)
AS
SELECT * FROM MY_TABLE