+Answer per-table storage from `sys.dm_db_partition_stats` with three scalar subqueries -- total, heap/clustered and nonclustered -- multiplied by the fixed 8 KiB page, filling `size_bytes`, `data_size_bytes` and `index_size_bytes` while a view keeps its row with `None` slots; `supports_table_storage_introspection()` declares the family and `row_count` stays `None` because an exact count is a scan and the listing reads no estimate. `SQLServerSequenceInfo` keeps its exact `Decimal`s and `is_cached` and gains `to_core()`, projecting name drift (`current_value` to `last_value`, `is_cycling` to `cycle`) and leaving non-integral figures `None` rather than widening the minimum. Four operational families answer -- unused indexes, index counters, runtime metrics and dependency edges -- while `table-stats` and `ddl` are refused with exit 2 because the DMV is keyed by object and index and no per-object rebuild text exists. Profiles, samples and join coverage render exact aggregations; nine CLI types derive from `_TYPE_CAPABILITIES`; and the 2005/2008/2012 availability floors are asked of the version accessor instead of being left to syntax errors.
0 commit comments