Step 6: Deallocate the cursor

An application initiates a cursor-deallocate command by calling ct_cursor with type as CS_CURSOR_DEALLOC. If an application does not explicitly deallocate a cursor, it is deallocated when the application disconnects.