The SQLGetCursorName function returns the cursor name that is associated with a specified hstmt. The cursor name can be user specified or system generated. This function can only be called if SQLSetCursorName has been previously called or after the cursor has been opened (by issuing an ExecuteDirect, Execute, or Catalog operation). The cursor name is valid for the lifetime of the hstmt, that is, if the cursor is closed and another one is opened, the driver reuses the previous name. Cursor names are required for issuing positioned updates and deletes.