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
description: "sys.database_service_objectives returns the edition (service tier), service objective (pricing tier), and elastic pool name, if any, for an Azure SQL database or a dedicated SQL pool in Azure Synapse Analytics."
Returns the edition (service tier), service objective (pricing tier), and elastic pool name, if any, for an Azure SQL database or a dedicated SQL pool in Azure Synapse Analytics.
23
+
Returns the edition (service tier), service objective (pricing tier), and elastic pool name, if any.
24
24
25
-
- If logged on to the `master` database in an Azure SQL Database server, returns information on all databases.
25
+
Returns data only in Azure SQL database, SQL database in Fabric, or dedicated SQL pool in Azure Synapse Analytics.
26
+
27
+
- If logged on to the `master` database in an Azure SQL Database logical server, returns information on all databases.
26
28
- 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).
27
29
28
30
## Result set
@@ -31,31 +33,29 @@ Returns the edition (service tier), service objective (pricing tier), and elasti
|`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).|
33
35
|`edition`|**sysname**|The service tier for the database or data warehouse: **Basic**, **Standard**, **Premium** or **Data Warehouse**.|
34
-
|`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 /> For details, 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/), [data warehouses](/azure/sql-data-warehouse/what-is-a-data-warehouse-unit-dwu-cdwu/)|
36
+
|`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.|
35
37
|`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.|
36
38
37
39
## Permissions
38
40
39
41
Requires **dbManager** permission on the `master` database. At the database level, the user must be the creator or owner.
40
42
41
43
## Remarks
42
-
44
+
45
+
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
+
43
47
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).
44
48
45
49
This catalog view is not supported in serverless SQL pools in Azure Synapse Analytics.
46
50
47
-
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/).
48
-
49
51
## Examples
50
52
51
-
This example can be run on the `master` database or on Azure SQL Database user databases. The query returns the name, service, and performance tier information of the database(s).
53
+
This query returns the name, service, and performance tier information of the current database context.
Copy file name to clipboardExpand all lines: docs/relational-databases/system-dynamic-management-views/geo-replication-dynamic-management-views-and-functions-azure-sql-database.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: "Geo-Replication Dynamic Management Views and Functions (Azure SQL Database)"
3
-
description: Geo-Replication Dynamic Management Views and Functions (Azure SQL Database)
2
+
title: "Geo-Replication Dynamic Management Views and Functions"
3
+
description: Geo-Replication Dynamic Management Views and Functions
titleSuffix: Azure SQL Database & SQL database in Fabric
4
+
description: The sys.dm_db_objects_impacted_on_version_change DMV provides an early warning system to determine objects that will be impacted by a major release upgrade.
This database-scoped system view is designed to provide an early warning system to determine objects that will be impacted by a major release upgrade in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)]. You can use the view either before or after the upgrade to get a full enumeration of impacted objects. You will need to query this view in each database to get a full accounting across the entire server.
|class|**int** NOT NULL|The class of the object which will be impacted:<br /><br /> **1** = constraint<br /><br /> **7** = Indexes and heaps|
30
-
|class_desc|**nvarchar(60)** NOT NULL|Description of the class:<br /><br /> **OBJECT_OR_COLUMN**<br /><br /> **INDEX**|
31
-
|major_id|**int** NOT NULL|object id of the constraint, or object id of table that contains index or heap.|
32
-
|minor_id|**int** NULL|**NULL** for constraints<br /><br /> Index_id for indexes and heaps|
33
-
|dependency|**nvarchar(60)** NOT NULL|Description of dependency that is causing a constraint or index to be impacted. The same value is also used for warnings generated during upgrade.<br /><br /> Examples:<br /><br /> **space** (for intrinsic)<br /><br /> **geometry** (for system UDT)<br /><br /> **geography::Parse** (for system UDT method)|
34
-
35
-
## Permissions
36
-
Requires the VIEW DATABASE STATE permission.
37
-
38
-
## Example
39
-
The following example shows a query on **sys.dm_db_objects_impacted_on_version_change** to find the objects impacted by an upgrade to the next major server version
The `sys.dm_db_objects_impacted_on_version_change` DMV provides an early warning system to determine objects that will be impacted by a major release upgrade in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)]. You can use the view either before or after the upgrade to get a full enumeration of affected objects. You will need to query this view in each database to get a full accounting across the entire server.
|`class`|**int**`NOT NULL`|The class of the object that will be affected:<br /><br /> **1** = constraint<br /><br /> **7** = Indexes and heaps|
32
+
|`class_desc`|**nvarchar(60)**`NOT NULL`|Description of the class:<br /><br /> `OBJECT_OR_COLUMN`<br /><br /> `INDEX`|
33
+
|`major_id`|**int**`NOT NULL`|Object ID of the constraint, or object ID of table that contains index or heap.|
34
+
|`minor_id`|**int**`NULL`|`NULL` for constraints<br /><br /> `Index_id` for indexes and heaps|
35
+
|`dependency`|**nvarchar(60)**`NOT NULL`|Description of dependency that is causing a constraint or index to be affected. The same value is also used for warnings generated during upgrade.<br /><br /> Examples:<br /><br /> **space** (for intrinsic)<br /><br /> **geometry** (for system UDT)<br /><br /> **geography::Parse** (for system UDT method)|
36
+
37
+
## Permissions
38
+
39
+
Requires the VIEW `DATABASE STATE` permission.
40
+
41
+
## Examples
42
+
43
+
The following example shows a query on `sys.dm_db_objects_impacted_on_version_change` to find the objects affected by an upgrade to the next major server version.
|1|**Indexes**|Rebuild any index identified by **sys.dm_db_objects_impacted_on_version_change** For example: `ALTER INDEX ALL ON <table> REBUILD`<br />or<br />`ALTER TABLE <table> REBUILD`|
63
-
|2|**Object**|All constraints identified by **sys.dm_db_objects_impacted_on_version_change** must be revalidated after the geometry and geography data in the underlying table is recomputed. For constraints, revalidate using ALTER TABLE. <br />For example: <br />`ALTER TABLE <tab> WITH CHECK CHECK CONSTRAINT <constraint name>`<br />or<br />`ALTER TABLE <tab> WITH CHECK CONSTRAINT ALL`|
64
-
65
-
53
+
1 OBJECT_OR_COLUMN 181575685 NULL geometry
54
+
7 INDEX 37575172 1 geometry
55
+
7 INDEX 2121058592 1 geometry
56
+
1 OBJECT_OR_COLUMN 101575400 NULL geometry
57
+
```
58
+
59
+
## Remarks
60
+
61
+
### How to update affected objects
62
+
63
+
The following ordered steps describe the corrective action to take after the upcoming June service release upgrade.
|`1`|**Indexes**|Rebuild any index identified by `sys.dm_db_objects_impacted_on_version_change` For example: `ALTER INDEX ALL ON <table> REBUILD`<br />or<br />`ALTER TABLE <table> REBUILD`|
68
+
|`2`|**Object**|All constraints identified by `sys.dm_db_objects_impacted_on_version_change` must be revalidated after the geometry and geography data in the underlying table is recomputed. For constraints, revalidate using `ALTER TABLE`. <br />For example: <br />`ALTER TABLE <tab> WITH CHECK CHECK CONSTRAINT <constraint name>`<br />or<br />`ALTER TABLE <tab> WITH CHECK CONSTRAINT ALL`|
69
+
70
+
## Related content
71
+
72
+
-[What's new in Azure SQL Database?](/azure/azure-sql/database/doc-changes-updates-release-notes-whats-new)
73
+
-[What's new in SQL database in Microsoft Fabric?](/fabric/fundamentals/whats-new#sql-database-in-microsoft-fabric)
Returns CPU, I/O, and memory consumption for a database in [!INCLUDE [ssazure-sqldb](../../includes/ssazure-sqldb.md)]. One row exists for every 15 seconds, even if there's no activity. Historical data is maintained for approximately one hour.
Copy file name to clipboardExpand all lines: docs/relational-databases/system-dynamic-management-views/sys-dm-operation-status-azure-sql-database.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
---
2
2
title: "sys.dm_operation_status"
3
-
description: The sys.dm_operation_status dynamic management view displays information about operations performed on databases in an Azure SQL Database logical server.
3
+
description: The sys.dm_operation_status dynamic management view displays information about operations performed on databases.
0 commit comments