1
0
mirror of https://github.com/alex-bochkov/ssms-addin.git synced 2026-06-15 16:57:06 +02:00

Update tables-info.sql

This commit is contained in:
Alex Bochkov
2025-04-28 15:57:46 -05:00
committed by GitHub
parent 726f5c2f63
commit 827ba6a6b0
+1 -1
View File
@@ -27,7 +27,7 @@ SELECT
FROM sys.tables AS t
LEFT OUTER JOIN
(SELECT si.object_id,
COUNT(*) AS IndexCount,
COUNT(CASE WHEN si.type_desc = 'HEAP' THEN NULL ELSE 1 END) AS IndexCount,
SUM(CASE WHEN si.type_desc = 'CLUSTERED' THEN 1 ELSE 0 END) AS HasClusteredIndex,
SUM(CASE WHEN si.is_primary_key = 1 THEN 1 ELSE 0 END) AS HasPK,
SUM(CASE WHEN si.type_desc = 'CLUSTERED'