SyntaxFix
Write A Post
Hire A Developer
Questions
Close the cursor, if it is empty then deallocate it:
IF CURSOR_STATUS('global','myCursor') >= -1 BEGIN IF CURSOR_STATUS('global','myCursor') > -1 BEGIN CLOSE myCursor END DEALLOCATE myCursor END