Skip to content

SQL Server Deprecated Feature Usage #1662

@goldenjacob

Description

@goldenjacob

This is a good article on deprecated feature usage and how to capture metrics around it, etc. Wondering if it would make sense to capture this as a counter metric as well as the code being used?

https://www.sqltabletalk.com/?p=1210

Talks about using something like this to capture the instances of usage, and then provides a build of an extended event that captures the deprecated events that could maybe be built into the existing extended event?

Query:
SELECT object_name,
instance_name AS DeprecatedFeature,
cntr_value AS UseCount
FROM sys.dm_os_performance_counters
WHERE object_name LIKE '%Deprecated Features%'
ORDER BY cntr_value DESC;

X Event:
CREATE EVENT SESSION Demo_Deprecated_Features
ON SERVER
ADD EVENT sqlserver.deprecation_announcement

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions