sqlAzureMIResourceStats - added sorting (#8286)

This commit is contained in:
Giovanni Luisotto 2020-10-20 16:17:17 +02:00 committed by GitHub
parent 1696cca283
commit f61457f87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -709,7 +709,9 @@ SELECT TOP(1)
,REPLACE(@@SERVERNAME,'\',':') AS [sql_instance]
,cast([avg_cpu_percent] as float) as [avg_cpu_percent]
FROM
sys.server_resource_stats;
sys.server_resource_stats
ORDER BY
[end_time] DESC;
`
const sqlAzureMIResourceGovernance string = `