how to make my sql code into cursor with in procedure

  • Cursors are notoriously slow so I would advise avoiding them except in a specific instance.

    It would help if you could post some sample data and the output you are expecting as that will help us deliver a solution.

    _________________________________________________________________________
    SSC Guide to Posting and Best Practices

  • What are you trying to do with the cursor? The way the question is stated I almost think you are looking for dynamic SQL.

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

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