Skip to content

Commit 9c451e3

Browse files
20251118 database service objectives (#35843)
1 parent 02c9d20 commit 9c451e3

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

docs/relational-databases/system-catalog-views/sys-database-service-objectives-azure-sql-database.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "sys.database_service_objectives returns the edition (service tier)
55
author: rwestMSFT
66
ms.author: randolphwest
77
ms.reviewer: wiassaf
8-
ms.date: 09/10/2025
8+
ms.date: 11/18/2025
99
ms.service: azure-sql-database
1010
ms.topic: conceptual
1111
ms.custom:
@@ -26,38 +26,38 @@ Returns the edition (service tier), service objective (pricing tier), and elasti
2626

2727
Returns data only in Azure SQL database, SQL database in Fabric, or dedicated SQL pool in Azure Synapse Analytics.
2828

29-
- If logged on to the `master` database in an Azure SQL Database logical server, returns information on all databases.
30-
- For dedicated SQL pools in Azure Synapse Analytics, you must be connected to the `master` database. This applies to both dedicated SQL pools in Azure Synapse workspaces and dedicated SQL pools (formerly SQL DW).
29+
If the current database context is the `master` database in an Azure SQL Database logical server, returns information on all databases.
3130

3231
## Result set
3332

3433
|Column Name|Data type|Description|
3534
|-----------------|---------------|-----------------|
3635
| `database_id` |**int**|The ID of the database, unique within the logical server. Joinable with [sys.databases](../../relational-databases/system-catalog-views/sys-databases-transact-sql.md) on the `database_id` column, but with not other system views where the `database_id` column is present. For details, see [DB_ID](../../t-sql/functions/db-id-transact-sql.md#remarks).|
37-
| `edition` |**sysname**|The service tier for the database or data warehouse: **Basic**, **Standard**, **Premium** or **Data Warehouse**.|
38-
| `service_objective` |**sysname**|The pricing tier of the database. If the database is in an elastic pool, returns **ElasticPool**.<br /><br /> On the **Basic** tier, returns **Basic**.<br /> **Single database in a standard service tier** returns one of the following: S0, S1, S2, S3, S4, S6, S7, S9 or S12.<br /> **Single database in a premium tier** returns of the following: P1, P2, P4, P6, P11 or P15.<br /> **Azure Synapse Analytics** returns DW100 through DW30000c.<br />**SQL database in Fabric** returns `FabricSQLDB` always.|
36+
| `edition` |**sysname**|The service tier for the database or data warehouse: **Basic**, **Standard**, **Premium**, or **Data Warehouse**.|
37+
| `service_objective` |**sysname**|The pricing tier of the database. If the database is in an elastic pool, returns **ElasticPool**.<br /><br /> On the **Basic** tier, returns **Basic**.<br /> **Single database in a standard service tier** returns one of the following: S0, S1, S2, S3, S4, S6, S7, S9, or S12.<br /> **Single database in a premium tier** returns of the following: P1, P2, P4, P6, P11, or P15.<br /> **Azure Synapse Analytics** returns DW100 through DW30000c.<br />**SQL database in Fabric** returns `FabricSQLDB` always.|
3938
| `elastic_pool_name` |**sysname**|The name of the [elastic pool](/azure/azure-sql/database/elastic-pool-overview) that the database belongs to. Returns `NULL` if the database is a single database or a dedicated SQL pool.|
4039

4140
## Permissions
4241

43-
Requires **dbManager** permission on the `master` database. At the database level, the user must be the creator or owner.
42+
Requires **dbManager** permission on the `master` database. At the database level, the user must be the creator or owner.
4443

4544
## Remarks
4645

47-
For details on service objectives, see [single databases](/azure/sql-database/sql-database-dtu-resource-limits-single-databases/), [elastic pools](/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools/). For Azure Synapse Analytics, see [DWUs](/azure/sql-data-warehouse/what-is-a-data-warehouse-unit-dwu-cdwu/). For information on pricing, see [SQL Database options and performance: SQL Database Pricing](https://azure.microsoft.com/pricing/details/sql-database/) and [Azure Synapse Analytics Pricing](https://azure.microsoft.com/pricing/details/sql-data-warehouse/).
46+
For details on service objectives, see [single databases](/azure/sql-database/sql-database-dtu-resource-limits-single-databases/), [elastic pools](/azure/sql-database/sql-database-dtu-resource-limits-elastic-pools/). For Azure Synapse Analytics, see [DWUs](/azure/sql-data-warehouse/what-is-a-data-warehouse-unit-dwu-cdwu/).
4847

4948
To change the service settings, see [ALTER DATABASE (Azure SQL Database)](../../t-sql/statements/alter-database-transact-sql.md) and [ALTER DATABASE (Azure Synapse Analytics)](../../t-sql/statements/alter-database-transact-sql.md?view=azure-sqldw-latest&preserve-view=true).
5049

51-
This catalog view is not supported in serverless SQL pools in Azure Synapse Analytics.
50+
For dedicated SQL pools in Azure Synapse Analytics, you must be connected to the `master` database. This applies to both dedicated SQL pools in Azure Synapse workspaces and dedicated SQL pools (formerly SQL DW). This catalog view is not supported in serverless SQL pools in Azure Synapse Analytics.
5251

5352
## Examples
5453

55-
This query returns the name, service, and performance tier information of the current database context.
54+
This query returns the name, service, service objective, and elastic pool name (if present) of the current database context.
5655

57-
```sql
58-
SELECT DB_NAME(), slo.edition, slo.service_objective
56+
```sql
57+
SELECT d.name, slo.edition, slo.service_objective, slo.elastic_pool_name
5958
FROM sys.database_service_objectives AS slo
60-
WHERE slo.database_id = DB_ID();
59+
JOIN sys.databases d ON slo.database_id = d.database_id
60+
WHERE d.name = DB_NAME();
6161
```
6262

6363
## Next step

0 commit comments

Comments
 (0)