Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In SQL Server, how do you determine the number of rows per page?

Tags:

sql-server

In SQL Server, how do you determine the (average or expected) number of rows per page?

I know know how to determine the average and max row size, but I don't know how that relates to actual rows/page.

like image 201
Jonathan Allen Avatar asked Oct 14 '25 07:10

Jonathan Allen


1 Answers

8060 bytes per page, 8 pages per extent...remember that if you row is 4040 bytes then you can only fit one row on the page

DBCC SHOWCONTIG will give you how many pages your table is using

like image 142
SQLMenace Avatar answered Oct 16 '25 20:10

SQLMenace