Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
Sarat
Constraint Violating Yak Guru
265 Posts |
Posted - 2003-03-12 : 19:00:45
|
| Hi,Per 2072 course book, if I need to get a count of how many pages are used by each tbl, I need to do the following:1. Total the bytes in a row2. Divide 8060 by the total bytes in a row to get # of rows in data page.3. Divide # of rows in the table by rows that are contained in each data page.Instead of doing this for every table, can I not use what is displayed by DBCC SHOWCONTIG (Pages Scanned)?I need this information for all tables in my database to design a spec for database growth in next 5 yrs.Thanks,Sarat. |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2003-03-12 : 19:41:58
|
| It appears that you can. The book is probably just teaching you how to get the numbers so that you have a better understanding of pages.Tara |
 |
|
|
|
|
|