mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-04 17:23:45 -05:00
Refresh master with initial release/0.24 snapshot (#332)
* Initial port of release/0.24 source code * Fix additional headers * Fix a typo in launch.json
This commit is contained in:
@@ -6,20 +6,20 @@ SUM(ALOC.data_pages) AS data_pages,
|
||||
(SUM(ALOC.total_pages)*8/1024) AS total_space_MB,
|
||||
(SUM(ALOC.used_pages)*8/1024) AS used_space_MB,
|
||||
(SUM(ALOC.data_pages)*8/1024) AS data_space_MB
|
||||
FROM sys.Tables AS TABL
|
||||
INNER JOIN sys.Indexes AS INDX
|
||||
FROM sys.tables AS TABL
|
||||
INNER JOIN sys.indexes AS INDX
|
||||
ON TABL.object_id = INDX.object_id
|
||||
INNER JOIN sys.Partitions AS PART
|
||||
INNER JOIN sys.partitions AS PART
|
||||
ON INDX.object_id = PART.object_id
|
||||
AND INDX.index_id = PART.index_id
|
||||
INNER JOIN sys.Allocation_Units AS ALOC
|
||||
INNER JOIN sys.allocation_units AS ALOC
|
||||
ON PART.partition_id = ALOC.container_id
|
||||
WHERE
|
||||
INDX.object_id > 255
|
||||
AND INDX.index_id <= 1
|
||||
GROUP BY TABL.name,
|
||||
GROUP BY TABL.name,
|
||||
INDX.object_id,
|
||||
INDX.index_id,
|
||||
INDX.name
|
||||
ORDER BY
|
||||
ORDER BY
|
||||
(SUM(ALOC.total_pages)*8/1024) DESC
|
||||
Reference in New Issue
Block a user