Skip to content

Commit 73df18a

Browse files
authored
Merge pull request MicrosoftDocs#7229 from CarlRabeler/20180913maintenance
[sql db] file space management
2 parents 0e5114b + d5028e8 commit 73df18a

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

docs/relational-databases/system-catalog-views/sys-elastic-pool-resource-stats-azure-sql-database.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "sys.elastic_pool_resource_stats (Azure SQL Database) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "04/06/2018"
4+
ms.date: "09/13/2018"
55
ms.prod: ""
66
ms.prod_service: "sql-database"
77
ms.reviewer: ""
@@ -48,7 +48,8 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
4848
|**max_worker_percent**|**decimal(5,2)**|Maximum concurrent workers (requests) in percentage based on the limit of the pool.|
4949
|**max_session_percent**|**decimal(5,2)**|Maximum concurrent sessions in percentage based on the limit of the pool.|
5050
|**elastic_pool_dtu_limit**|**int**|Current max elastic pool DTU setting for this elastic pool during this interval.|
51-
|**elastic_pool_storage_limit_mb**|**bigint**|Current max elastic pool storage limit setting for this elastic pool in megabytes during this interval.|
51+
|**elastic_pool_storage_limit_mb**|**bigint**|Current max elastic pool storage limit setting for this elastic pool in megabytes during this interval.|
52+
|**avg_allocated_storage_percent**|**decimal(5,2)**|The percentage of data space allocated by all databases in the elastic pool. This is the ratio of data space allocated to data max size for the elastic pool. For more information see: [File space management in SQL DB](https://docs.microsoft.com/azure/sql-database/sql-database-file-space-management)|
5253

5354
## Remarks
5455
This view exists in the master database of the logical server. You must be connected to the master database to query **sys.elastic_pool_resource_stats**.

docs/relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "sys.resource_stats (Azure SQL Database) | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "04/06/2018"
4+
ms.date: "09/13/2018"
55
ms.prod: ""
66
ms.prod_service: "sql-database"
77
ms.reviewer: ""
@@ -12,26 +12,26 @@ ms.technology: system-objects
1212
ms.tgt_pltfrm: ""
1313
ms.topic: "language-reference"
1414
f1_keywords:
15-
- "resource_stats"
16-
- "sys.resource_stats"
17-
- "sys.resource_stats_TSQL"
18-
- "resource_stats_TSQL"
15+
- resource_stats
16+
- sys.resource_stats
17+
- sys.resource_stats_TSQL
18+
- resource_stats_TSQL
1919
dev_langs:
2020
- "TSQL"
2121
helpviewer_keywords:
2222
- "sys.resource_stats"
2323
- "resource_stats"
2424
ms.assetid: 02379a1b-3622-4578-8c59-a1b8f1a17914
2525
caps.latest.revision: 28
26-
author: "CarlRabeler"
26+
author: CarlRabeler
2727
ms.author: "carlrab"
2828
manager: craigg
2929
monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
3030
---
3131
# sys.resource_stats (Azure SQL Database)
3232
[!INCLUDE[tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md](../../includes/tsql-appliesto-xxxxxx-asdb-xxxx-xxx-md.md)]
3333

34-
Returns CPU usage and storage data for an Azure SQL Database. The data is collected and aggregated within five-minute intervals. For each user database, there is one row for every five-minute reporting window in which there is change in resource consumption. The data returned includes CPU usage, storage size change or database SKU modification. Idle databases with no changes may not have rows for every five-minute interval. Historical data is retained for approximately 14 days.
34+
Returns CPU usage and storage data for an Azure SQL Database. The data is collected and aggregated within five-minute intervals. For each user database, there is one row for every five-minute reporting window in which there is a change in resource consumption. The data returned includes CPU usage, storage size change, and database SKU modification. Idle databases with no changes may not have rows for every five-minute interval. Historical data is retained for approximately 14 days.
3535

3636
The **sys.resource_stats** view has different definitions depending on the version of the Azure SQL Database Server that the database is associated with. Consider these differences and any modifications your application requires when upgrading to a new server version.
3737

@@ -50,6 +50,7 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
5050
|max_worker_percent|**decimal(5,2)**|Maximum concurrent workers (requests) in percentage based on the limit of the database’s service tier.<br /><br /> Maximum is currently calculated for the five-minute interval based on the 15-second samples of concurrent worker counts.|
5151
|max_session_percent|**decimal(5,2)**|Maximum concurrent sessions in percentage based on the limit of the database’s service tier.<br /><br /> Maximum is currently calculated for the five-minute interval based on the 15-second samples of concurrent session counts.|
5252
|dtu_limit|**int**|Current max database DTU setting for this database during this interval. |
53+
|allocated_storage_in_megabytes|**float**|The amount of formatted file space in MB made available for storing database data. Formatted file space is also referred to as data space allocated. For more information, see: [File space management in SQL DB](https://docs.microsoft.com/azure/sql-database/sql-database-file-space-management)|
5354

5455
> [!TIP]
5556
> For more context about these limits and service tiers, see the topics [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/).
@@ -62,7 +63,7 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
6263

6364
When a database is a member of an elastic pool, resource statistics presented as percent values, are expressed as the percent of the max limit for the databases as set in the elastic pool configuration.
6465

65-
For a more granular view of this data, use **sys.dm_db_resource_stats** dynamic management view in a user database. This view captures data every 15-seconds and maintains historical data for 1 hour. For more information, see [sys.dm_db_resource_stats &#40;Azure SQL Database&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database.md).
66+
For a more granular view of this data, use **sys.dm_db_resource_stats** dynamic management view in a user database. This view captures data every 15 seconds and maintains historical data for 1 hour. For more information, see [sys.dm_db_resource_stats &#40;Azure SQL Database&#41;](../../relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database.md).
6667

6768
## Examples
6869
The following example returns all databases that are averaging at least 80% of compute utilization over the last one week.

0 commit comments

Comments
 (0)