| title | sys.hash_indexes (Transact-SQL) | Microsoft Docs | ||||
|---|---|---|---|---|---|
| ms.custom | |||||
| ms.date | 06/10/2016 | ||||
| ms.prod | sql | ||||
| ms.prod_service | database-engine | ||||
| ms.service | |||||
| ms.component | system-catalog-views | ||||
| ms.reviewer | |||||
| ms.suite | sql | ||||
| ms.technology |
|
||||
| ms.tgt_pltfrm | |||||
| ms.topic | language-reference | ||||
| f1_keywords |
|
||||
| dev_langs |
|
||||
| helpviewer_keywords |
|
||||
| ms.assetid | d9e230fb-d3ff-486f-86ef-44898f0a703e | ||||
| caps.latest.revision | 22 | ||||
| author | stevestein | ||||
| ms.author | sstein | ||||
| manager | craigg | ||||
| ms.workload | Inactive |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx-md]
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). |
[!INCLUDEssCatViewPerm]. For more information, see Metadata Visibility Configuration.
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';
Object Catalog Views (Transact-SQL)
Catalog Views (Transact-SQL)