The SQLSetCursorName function associates a cursor name with an active hstmt. A cursor name is automatically created if one is not specified.