You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -26,38 +26,38 @@ Returns the edition (service tier), service objective (pricing tier), and elasti
26
26
27
27
Returns data only in Azure SQL database, SQL database in Fabric, or dedicated SQL pool in Azure Synapse Analytics.
28
28
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.
|`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.|
39
38
|`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.|
40
39
41
40
## Permissions
42
41
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.
44
43
45
44
## Remarks
46
45
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/).
48
47
49
48
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).
50
49
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.
52
51
53
52
## Examples
54
53
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.
0 commit comments