Is there a query that can help identify tables whos rows potentially are longer than 8060 bytes in MSSQL 2008? I understand that this is the maximum size of a data row.
eg.
create table a (
a varchar(4000),
b varchar(4000),
c varchar(4000)
)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A quick and dirty one.
Dropped and altered columns can still consume wasted space. This is visible through
sys.system_internals_partition_columnsYou might be better off looking at
sys.dm_db_partition_statsto determine which objects actually have off row pages allocated.