I found this script sql-server-2005-reaching-table-row-size-limit that seems to return the row size per defined data type lengths. I need a script that would give me all the rows in a table that their max data size is over the recommended 8024 (whatever MS recommends)
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
migrated from stackoverflow.com Oct 6 '12 at 6:56
|
Try this script:
The rows will be ordered by size, so you can check from top to down. |
|||||
|
|
try this:
|
|||
|
|

SELECT * FROM sys.dm_db_index_physical_stats(DB_ID(N'Database_Name'), OBJECT_ID(N'Table_Name'), NULL, NULL, 'DETAILED')and look for anything where thealloc_unit_type_descisROW_OVERFLOW_DATA– dash Oct 5 '12 at 10:56