Created
April 16, 2018 04:35
-
-
Save Charmatzis/e81fa9c705b0fe91e1475072e05b9c24 to your computer and use it in GitHub Desktop.
Get index_physical_stats from table in SQL Server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select index_id | |
, index_type_desc | |
, index_depth | |
, index_level | |
, page_count | |
, record_count | |
from sys.dm_db_index_physical_stats (DB_ID(), | |
OBJECT_ID('Table_Name'), DEFAULT, DEFAULT, 'DETAILED') | |
go |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment