| title | sys.index_resumable_operations (Transact-SQL) | ||
|---|---|---|---|
| description | sys.index_resumable_operations (Transact-SQL) | ||
| author | rwestMSFT | ||
| ms.author | randolphwest | ||
| ms.date | 11/12/2019 | ||
| ms.service | sql | ||
| ms.subservice | system-objects | ||
| ms.topic | reference | ||
| ms.custom |
|
||
| f1_keywords |
|
||
| helpviewer_keywords |
|
||
| dev_langs |
|
||
| monikerRange | =azuresqldb-current || >=sql-server-2017 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric-sqldb |
[!INCLUDESQL Server 2017 Azure SQL Database Azure SQL Managed Instance FabricSQLDB]
sys.index_resumable_operations is a system view that monitors and checks the current execution status for resumable Index rebuild or creation.
Applies to: SQL Server (2017 and newer), and Azure SQL Database
| Column name | Data type | Description |
|---|---|---|
| object_id | int | ID of the object to which this index belongs (not nullable). |
| index_id | int | ID of the index (not nullable). index_id is unique only within the object. |
| name | sysname | Name of the index. name is unique only within the object. |
| sql_text | nvarchar(max) | DDL T-SQL statement text |
| last_max_dop | smallint | Last MAX_DOP used (default = 0) |
| partition_number | int | Partition number within the owning index or heap. For non-partitioned tables and indexes or in case all partitions are being rebuild the value of this column is NULL. |
| state | tinyint | Operational state for resumable index: 0=Running 1=Pause |
| state_desc | nvarchar(60) | Description of the operational state for resumable index (running or Paused) |
| start_time | datetime | Index operation start time (not nullable) |
| last_pause_time | datetime | Index operation last pause time (nullable). NULL if operation is running and never paused. |
| total_execution_time | int | Total execution time from start time in minutes (not nullable) |
| percent_complete | real | Index operation progress completion in % ( not nullable). |
| page_count | bigint | Total number of index pages allocated by the index build operation for the new and mapping indexes ( not nullable ). |
[!INCLUDEssCatViewPerm] For more information, see Metadata Visibility Configuration.
List all resumable index creation or rebuild operations that are in the PAUSE state.
SELECT * FROM sys.index_resumable_operations WHERE STATE = 1;