--- description: "SQLSetStmtOption Function" title: "SQLSetStmtOption Function | Microsoft Docs" ms.custom: "" ms.date: "01/19/2017" ms.prod: sql ms.prod_service: connectivity ms.reviewer: "" ms.technology: connectivity ms.topic: reference apiname: - "SQLSetStmtOption" apilocation: - "sqlsrv32.dll" apitype: "dllExport" f1_keywords: - "SQLSetStmtOption" helpviewer_keywords: - "SQLSetStmtOption function [ODBC]" ms.assetid: 9cbe2b62-4cf7-43ab-8fb4-9a53df2c6b3f author: David-Engel ms.author: v-daenge --- # SQLSetStmtOption Function **Conformance** Version Introduced: ODBC 1.0 Standards Compliance: Deprecated **Summary** In ODBC 3*.x*, the ODBC 2.0 function **SQLSetStmtOption** has been replaced by **SQLSetStmtAttr**. For more information, see [SQLSetStmtAttr](../../../odbc/reference/syntax/sqlsetstmtattr-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. ## Remarks See [ODBC 64-Bit Information](../../../odbc/reference/odbc-64-bit-information.md), if your application will run on a 64-bit operating system. ## See Also [ODBC API Reference](../../../odbc/reference/syntax/odbc-api-reference.md) [ODBC Header Files](../../../odbc/reference/install/odbc-header-files.md)