--- title: "sys.hash_indexes (Transact-SQL) | Microsoft Docs" ms.custom: "" ms.date: "06/10/2016" ms.prod: "sql-non-specified" ms.reviewer: "" ms.suite: "" ms.technology: - "database-engine" ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords: - "sys.hash_indexes_TSQL" - "hash_indexes" - "sys.hash_indexes" - "hash_indexes_TSQL" dev_langs: - "TSQL" helpviewer_keywords: - "sys.hash_indexes catalog view" ms.assetid: d9e230fb-d3ff-486f-86ef-44898f0a703e caps.latest.revision: 22 author: "JennieHubbard" ms.author: "jhubbard" manager: "jhubbard" --- # sys.hash_indexes (Transact-SQL) [!INCLUDE[tsql-appliesto-ss2008-xxxx-xxxx-xxx_md](../../includes/tsql-appliesto-ss2008-xxxx-xxxx-xxx-md.md)] Shows the current hash indexes and the hash index properties. Hash indexes are supported only on [In-Memory OLTP (In-Memory Optimization)](../../relational-databases/in-memory-oltp/in-memory-oltp-in-memory-optimization.md). The sys.hash_indexes view contains the same columns as the sys.indexes view and an additional column named **bucket_count**. For more information about the other columns in the sys.hash_indexes view, see [sys.indexes (Transact-SQL)](../../relational-databases/system-catalog-views/sys-indexes-transact-sql.md). || |-| |**Applies to**: [!INCLUDE[ssNoVersion](../../includes/ssnoversion-md.md)] ([!INCLUDE[ssSQL14](../../includes/sssql14-md.md)] through [current version](http://go.microsoft.com/fwlink/p/?LinkId=299658)).| |Column name|Data type|Description| |-----------------|---------------|-----------------| |**\**||Inherits columns from [sys.indexes (Transact-SQL)](../../relational-databases/system-catalog-views/sys-indexes-transact-sql.md).| |**bucket_count**|**int**|Count of hash buckets for hash indexes.

For more information about the bucket_count value, including guidelines for setting the value, see [CREATE TABLE (Transact-SQL)](../../t-sql/statements/create-table-transact-sql.md).| ## Permissions [!INCLUDE[ssCatViewPerm](../../includes/sscatviewperm-md.md)]. For more information, see [Metadata Visibility Configuration](../../relational-databases/security/metadata-visibility-configuration.md). ## Examples ``` SELECT object_name([object_id]) AS 'table_name', [object_id], [name] AS 'index_name', [type_desc], [bucket_count] FROM sys.hash_indexes WHERE OBJECT_NAME([object_id]) = 'T1'; ``` ## See Also [Object Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/object-catalog-views-transact-sql.md) [Catalog Views (Transact-SQL)](../../relational-databases/system-catalog-views/catalog-views-transact-sql.md)