---
title: "sys.dm_pdw_sql_requests (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"
dev_langs:
- "TSQL"
ms.assetid: 44e19609-902c-46cf-acdf-19ea75011365
caps.latest.revision: 10
author: "barbkess"
ms.author: "barbkess"
manager: "jhubbard"
---
# sys.dm_pdw_sql_requests (Transact-SQL)
[!INCLUDE[tsql-appliesto-xxxxxx-xxxx-asdw-pdw_md](../../includes/tsql-appliesto-xxxxxx-xxxx-asdw-pdw-md.md)]
Holds information about all SQL Server query distributions as part of a SQL step in the query.
|Column Name|Data Type|Description|Range|
|-----------------|---------------|-----------------|-----------|
|request_id|**nvarchar(32)**|Unique identifier of the query to which this SQL query distribution belongs.
request_id, step_index, and distribution_id form the key for this view.|See request_id in [sys.dm_pdw_exec_requests (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-pdw-exec-requests-transact-sql.md).|
|step_index|**int**|Index of the query step this distribution is part of.
request_id, step_index, and distribution_id form the key for this view.|See step_index in [sys.dm_pdw_request_steps (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-pdw-request-steps-transact-sql.md).|
|pdw_node_id|**int**|Unique identifier of the node on which this query distribution is run.|See node_id in [sys.dm_pdw_nodes (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-pdw-nodes-transact-sql.md).|
|distribution_id|**int**|Unique identifier of the distribution on which this query distribution is run.
request_id, step_index, and distribution_id form the key for this view.|See distribution_id in [sys.pdw_distributions (Transact-SQL)](../../relational-databases/system-catalog-views/sys-pdw-distributions-transact-sql.md). Set to -1 for requests that run at the node scope, not the distribution scope.|
|status|**nvarchar(32)**|Current status of the query distribution.|Pending, Running, Failed, Cancelled, Complete, Aborted, CancelSubmitted|
|error_id|**nvarchar(36)**|Unique identifier of the error associated with this query distribution, if any.|See error_id in [sys.dm_pdw_errors (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sys-dm-pdw-errors-transact-sql.md). Set to NULL if no error occurred.|
|start_time|**datetime**|Time at which query distribution started execution.|Smaller or equal to current time and greater or equal to start_time of the query step this query distribution belongs to|
|end_time|**datetime**|Time at which this query distribution completed execution, was cancelled, or failed.|Greater or equal to start time, or set to NULL if the query distribution is ongoing or queued.|
|total_elapsed_time|**int**|Represents the time the query distribution has been running, in milliseconds.|Greater or equal to 0. Equal to the delta of start_time and end_time for completed, failed, or cancelled query distributions.
If total_elapsed_time exceeds the maximum value for an integer, total_elapsed_time will continue to be the maximum value. This condition will generate the warning “The maximum value has been exceeded.”
The maximum value in milliseconds is equivalent to 24.8 days.|
|row_count|**bigint**|Number of rows changed or read by this query distribution.|-1 for operations that do not change or return data, such as CREATE TABLE and DROP TABLE.|
|spid|**int**|Session id on the SQL Server instance running the query distribution.||
|command|**nvarchar(4000)**|Full text of command for this query distribution.|Any valid query or request string.|
For information about the maximum rows retained by this view, see the Maximum System View Values section in the [Minimum and Maximum Values (SQL Server PDW)](http://msdn.microsoft.com/en-us/5243f018-2713-45e3-9b61-39b2a57401b9) topic.
## See Also
[SQL Data Warehouse and Parallel Data Warehouse Dynamic Management Views (Transact-SQL)](../../relational-databases/system-dynamic-management-views/sql-and-parallel-data-warehouse-dynamic-management-views.md)