Finding the height of the B-Tree of a table in SQL Server
问题 Since database data is organized in 8k pages in a B-tree, and likewise for PK information information, it should be possible for each table in the database to calculate the height of the B-Tree. Thus revealing how many jumps it takes to reach certain data. Since both row size and PK size is of great importance, it is difficult to calculate since eg varchar(250) need not take up 250 bytes. 1) Is there a way to get the info out of SQL Server? 2) if not, is it possible to give a rough estimate