Fix #14100: mssql fix usage query, make table name lowercase (#14101)

This commit is contained in:
Mayur Singal 2023-11-27 14:07:37 +05:30 committed by GitHub
parent 84054a85d3
commit aa00802f6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,7 +29,7 @@ MSSQL_SQL_STATEMENT = textwrap.dedent(
FROM sys.dm_exec_cached_plans AS p
INNER JOIN sys.dm_exec_query_stats AS s
ON p.plan_handle = s.plan_handle
CROSS APPLY sys.Dm_exec_sql_text(p.plan_handle) AS t
CROSS APPLY sys.dm_exec_sql_text(p.plan_handle) AS t
INNER JOIN sys.databases db
ON db.database_id = t.dbid
WHERE s.last_execution_time between '{start_time}' and '{end_time}'