Passing Parameter to a cursor

  • Hi All,

    Is it possible to pass parameters to a cursor in t- sql, as we can do in PL/SQL?

    I need to write a parameterized cursor in a stored procedure. Please help me out with it.

  • Any help on this at all. I have the same question.


    Arthur Lorenzini

  • The parm is to limit the cursor rows?

    DECLARE mycursor CURSOR FOR

    SELECT cols

    FROM mytable

    WHERE col1 = @myparm

    OPEN mycursor.....

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply