Skip to content

Commit 1aabb31

Browse files
Merge pull request #33847 from thesqlsith/2025-04-18-db_compat_170
dbcompat update
2 parents 6f51c0b + e2bb44c commit 1aabb31

File tree

2 files changed

+113
-82
lines changed

2 files changed

+113
-82
lines changed

docs/relational-databases/databases/view-or-change-the-compatibility-level-of-a-database.md

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: "View or change the compatibility level of a database"
2+
title: "View or Change the Compatibility Level of a Database"
33
description: Learn how to view or change the compatibility level of a database in SQL Server or Azure SQL by using SQL Server Management Studio or Transact-SQL.
44
author: WilliamDAssafMSFT
55
ms.author: wiassaf
66
ms.reviewer: randolphwest
7-
ms.date: 07/25/2024
7+
ms.date: 04/22/2025
88
ms.service: sql
99
ms.subservice: supportability
1010
ms.topic: how-to
@@ -30,7 +30,9 @@ Before you change the compatibility level of a database, you should understand t
3030

3131
Requires `ALTER` permission on the database.
3232

33-
## <a id="SSMSProcedure"></a> Use SQL Server Management Studio
33+
<a id="SSMSProcedure"></a>
34+
35+
## Use SQL Server Management Studio
3436

3537
To view or change the compatibility level of a database using [SQL Server Management Studio (SSMS)](../../ssms/sql-server-management-studio-ssms.md)
3638

@@ -53,9 +55,11 @@ To view or change the compatibility level of a database using [SQL Server Manage
5355

5456
To change the compatibility level, select a different option from the list. The available options for different [!INCLUDE [ssDE-md](../../includes/ssde-md.md)] versions are listed in the [ALTER DATABASE Compatibility Level (Transact-SQL)](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md#supported-dbcompats) page.
5557

56-
## <a id="TsqlProcedure"></a> Use Transact-SQL
58+
<a id="TsqlProcedure"></a>
59+
60+
## Use Transact-SQL
5761

58-
You can use Transact-SQL to view or change the compatibility level of a database using SSMS or [Azure Data Studio](/azure-data-studio/what-is-azure-data-studio).
62+
You can use Transact-SQL to view or change the compatibility level of a database using SSMS.
5963

6064
### View the compatibility level of a database
6165

@@ -66,10 +70,9 @@ You can use Transact-SQL to view or change the compatibility level of a database
6670
1. Copy and paste the following example into the query window and select **Execute**. This example returns the compatibility level of the [!INCLUDE [sssampledbobject-md](../../includes/sssampledbobject-md.md)] [sample database](../../samples/adventureworks-install-configure.md).
6771

6872
```sql
69-
USE AdventureWorks2022;
70-
GO
7173
SELECT compatibility_level
72-
FROM sys.databases WHERE name = 'AdventureWorks2022';
74+
FROM sys.databases
75+
WHERE [name] = 'AdventureWorks2022';
7376
GO
7477
```
7578

@@ -87,9 +90,9 @@ You can use Transact-SQL to view or change the compatibility level of a database
8790
GO
8891
```
8992

90-
> [!NOTE]
91-
> The compatibility level of a [Fabric SQL database](/fabric/database/sql/overview) cannot be changed, and always uses the latest version.
93+
> [!NOTE]
94+
> The compatibility level of a [SQL database in Microsoft Fabric (Preview)](/fabric/database/sql/overview) cannot be changed, and always uses the latest version.
9295
9396
## Related content
9497

95-
- [ALTER DATABASE (Transact-SQL) Compatibility Level](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md)
98+
- [ALTER DATABASE (Transact-SQL) compatibility level](../../t-sql/statements/alter-database-transact-sql-compatibility-level.md)

0 commit comments

Comments
 (0)