--- title: "Sparse Columns Support (ODBC) | Microsoft Docs" ms.custom: "" ms.date: "06/13/2017" ms.prod: "sql-server-2014" ms.reviewer: "" ms.technology: native-client ms.topic: "reference" ms.assetid: 11ae959f-2fb6-4b85-ac5d-1476a82136d4 author: MightyPen ms.author: genemi manager: craigg --- # Sparse Columns Support (ODBC) This topic describes [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] Native Client ODBC support for sparse columns. For a sample demonstrating ODBC support for sparse columns, see [Call SQLColumns on a Table with Sparse Columns](../../native-client-odbc-how-to/call-sqlcolumns-on-a-table-with-sparse-columns.md). For more information about sparse columns, see [Sparse Columns Support in SQL Server Native Client](../features/sparse-columns-support-in-sql-server-native-client.md). ## Statement Metadata The application parameter descriptor (APD) descriptor field and SQL_SOPT_SS_NAME_SCOPE statement attribute accepts the additional values SQL_SS_NAME_SCOPE_EXTENDED and SQL_SS_NAME_SCOPE_SPARSE_COLUMN_SET. These values specify which columns are included in the result set returned by [SQLColumns](../../native-client-odbc-api/sqlcolumns.md). For more information about SQL_SOPT_SS_NAME_SCOPE, see [SQLSetStmtAttr](../../native-client-odbc-api/sqlsetstmtattr.md). A new implementation row descriptor (IRD), a read-only SQLSMALLINT field called SQL_CA_SS_IS_COLUMN_SET, can be used to determine if a column is an XML `column_set` value. SQL_CA_SS_IS_COLUMN_SET takes the values SQL_TRUE and SQL_FALSE. ## Catalog Metadata Two [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] specific columns (SS_IS_SPARSE and SS_IS_COLUMN_SET) have been added to the result set for [SQLColumns](../../native-client-odbc-api/sqlcolumns.md). ## ODBC Function Support for Sparse Columns The following ODBC functions have been updated to support sparse columns in [!INCLUDE[ssNoVersion](../../../includes/ssnoversion-md.md)] Native Client: - [SQLColAttribute](../../native-client-odbc-api/sqlcolattribute.md) - [SQLColumns](../../native-client-odbc-api/sqlcolumns.md) - [SQLGetDescField](../../native-client-odbc-api/sqlgetdescfield.md) - [SQLSetDescField](../../native-client-odbc-api/sqlsetdescfield.md) - [SQLSetStmtAttr](../../native-client-odbc-api/sqlsetstmtattr.md) ## See Also [SQL Server Native Client (ODBC)](sql-server-native-client-odbc.md)