-
-
Notifications
You must be signed in to change notification settings - Fork 88
Description
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