Skip to content

Commit 60bd32a

Browse files
authored
Merge pull request #26422 from MikeRayMSFT/20230316-update-deprecated-featues
Update query for deprecated features
2 parents 08fabae + f3206cf commit 60bd32a

6 files changed

Lines changed: 17 additions & 20 deletions

docs/database-engine/deprecated-database-engine-features-in-sql-server-2016.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ You can monitor the use of deprecated features by using the [!INCLUDE[ssNoVersio
3333

3434
The value of these counters is also available by executing the following statement:
3535

36-
```sql
37-
SELECT * FROM sys.dm_os_performance_counters
38-
WHERE object_name = 'SQLServer:Deprecated Features';
39-
```
36+
[!INCLUDE [deprecated-os-performance-counters](../includes/deprecated-os-performance-counters.md)]
4037

4138
## Features deprecated in the next version of SQL Server
4239

docs/database-engine/deprecated-database-engine-features-in-sql-server-2017.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,7 @@ You can monitor the use of deprecated features by using the [!INCLUDE[ssNoVersio
3131

3232
The values of these counters are also available by executing the following statement:
3333

34-
```sql
35-
SELECT * FROM sys.dm_os_performance_counters
36-
WHERE object_name = 'SQLServer:Deprecated Features';
37-
```
34+
[!INCLUDE [deprecated-os-performance-counters](../includes/deprecated-os-performance-counters.md)]
3835

3936
> [!NOTE]
4037
> This list is identical to the [!INCLUDE[sssql15-md](../includes/sssql16-md.md)] list. There are no new deprecated or discontinued Database Engine features announced for [!INCLUDE[sssql17-md](../includes/sssql17-md.md)].

docs/database-engine/deprecated-database-engine-features-in-sql-server-2019.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ You can monitor the use of deprecated features by using the [!INCLUDE[ssNoVersio
3636

3737
The values of these counters are also available by executing the following statement:
3838

39-
```sql
40-
SELECT * FROM sys.dm_os_performance_counters
41-
WHERE object_name = 'SQLServer:Deprecated Features';
42-
```
39+
[!INCLUDE [deprecated-os-performance-counters](../includes/deprecated-os-performance-counters.md)]
4340

4441
## See also
4542

docs/database-engine/deprecated-database-engine-features-in-sql-server-2022.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,7 @@ You can monitor the use of deprecated features by using the [!INCLUDE[ssNoVersio
4343

4444
The values of these counters are also available by executing the following statement:
4545

46-
```sql
47-
SELECT * FROM sys.dm_os_performance_counters
48-
WHERE object_name = 'SQLServer:Deprecated Features';
49-
```
46+
[!INCLUDE [deprecated-os-performance-counters](../includes/deprecated-os-performance-counters.md)]
5047

5148
## See also
5249

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
author: MikeRayMSFT
3+
ms.author: mikeray
4+
ms.date: 03/16/2023
5+
ms.topic: include
6+
ms.service: sql
7+
---
8+
9+
```sql
10+
SELECT * FROM sys.dm_os_performance_counters
11+
WHERE object_name LIKE '%SQL%Deprecated Features%';
12+
```

docs/relational-databases/performance-monitor/sql-server-deprecated-features-object.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,7 @@ helpviewer_keywords:
2020

2121
The value of these counters are also available by executing the following statement:
2222

23-
```sql
24-
SELECT * FROM sys.dm_os_performance_counters
25-
WHERE object_name LIKE '%SQL%Deprecated Features%';
26-
```
23+
[!INCLUDE [deprecated-os-performance-counters](../../includes/deprecated-os-performance-counters.md)]
2724

2825
This following table describes the SQL Server **Deprecated Features** performance object.
2926

0 commit comments

Comments
 (0)