You've already forked ssms-addin
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:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user