--- title: "SQLCloseCursor | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: native-client ms.topic: "reference" topic_type: - "apiref" helpviewer_keywords: - "SQLCloseCursor function" ms.assetid: e7134d65-5c1c-4ae2-b119-d9b4b9a42483 author: MightyPen ms.author: genemi manager: craigg --- # SQLCloseCursor **SQLCloseCursor** replaces [SQLFreeStmt](sqlfreestmt.md) with an *Option* value of SQL_CLOSE. On receipt of **SQLCloseCursor**, the [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] Native Client ODBC driver discards pending result set rows. Note that the statement's column and parameter bindings (if any exist) are left unaltered by **SQLCloseCursor**. ## See Also [SQLCloseCursor](https://go.microsoft.com/fwlink/?LinkId=59331) [ODBC API Implementation Details](odbc-api-implementation-details.md)