--- title: "SQLGetStmtOption Function | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: "sql-non-specified" ms.prod_service: "drivers" ms.service: "" ms.component: "reference" ms.reviewer: "" ms.suite: "sql" ms.technology: - "drivers" ms.tgt_pltfrm: "" ms.topic: "article" apiname: - "SQLGetStmtOption" apilocation: - "sqlsrv32.dll" apitype: "dllExport" f1_keywords: - "SQLGetStmtOption" helpviewer_keywords: - "SQLGetStmtOption function [ODBC]" ms.assetid: d69c2668-4260-4722-8c34-1c51caac307f caps.latest.revision: 10 author: "MightyPen" ms.author: "genemi" manager: "jhubbard" ms.workload: "Inactive" --- # SQLGetStmtOption Function **Conformance** Version Introduced: ODBC 1.0 Standards Compliance: Deprecated **Summary** In ODBC 3.*x*, the ODBC 2.0 function **SQLGetStmtOption** has been replaced by **SQLGetStmtAttr**. For more information, see [SQLGetStmtAttr](../../../odbc/reference/syntax/sqlgetstmtattr-function.md). > [!NOTE] > For more information about what the Driver Manager maps this function to when an ODBC 2.*x* application is working with an ODBC 3.*x* driver, see [Mapping Deprecated Functions](../../../odbc/reference/appendixes/mapping-deprecated-functions.md) in Appendix G: Driver Guidelines for Backward Compatibility. ## See Also [ODBC API Reference](../../../odbc/reference/syntax/odbc-api-reference.md) [ODBC Header Files](../../../odbc/reference/install/odbc-header-files.md)