Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 2.28 KB

File metadata and controls

47 lines (39 loc) · 2.28 KB
title sys.hash_indexes (Transact-SQL)
description sys.hash_indexes (Transact-SQL)
author rwestMSFT
ms.author randolphwest
ms.date 06/10/2016
ms.service sql
ms.subservice system-objects
ms.topic reference
f1_keywords
sys.hash_indexes_TSQL
hash_indexes
sys.hash_indexes
hash_indexes_TSQL
helpviewer_keywords
sys.hash_indexes catalog view
dev_langs
TSQL

sys.hash_indexes (Transact-SQL)

[!INCLUDEsqlserver2014-asdb-asdbmi]

Shows the current hash indexes and the hash index properties. Hash indexes are supported only on In-Memory OLTP (In-Memory Optimization).

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).

Column name Data type Description
<inherited columns> Inherits columns from sys.indexes (Transact-SQL).
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).

Permissions

[!INCLUDEssCatViewPerm]. For more information, see Metadata Visibility Configuration.

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)
Catalog Views (Transact-SQL)