Solved

SQL Data Page Storage

Posted on 2011-09-15
2
321 Views
Last Modified: 2012-05-12
Reading through a book (SQL 2008) to increase my SQL knowledge in hopes of moving towards a DBA role and had a question.  The book states "Data pages contain data rows from tables. These rows cannot span pages. Because of the page header and row offset information, the maximum row size is limited to 8,060 bytes."

Is the row they are refering to an entire row in a table because it seems like a single row could easily be larger than 8060 bytes?  Or can a Data Page row be just a single column value with a table row spanning mutliple Data Pages?  If not what happens when a table row is larger than 8,060 bytes?

0
Comment
Question by:tim_cs
2 Comments
 
LVL 22

Accepted Solution

by:
pivar earned 500 total points
ID: 36546308
Hi,

No, a row can store maximum 8060 bytes. But you could use a blob, that is, datatypes VARCHAR(MAX), NVARCHAR(MAX) and VARBINARY(MAX). They have a maximum size of 2GB, but add only 16 bytes to the 8060 bytes limit.

If you define a table with more than 8060 bytes, you will get an error.  You could define a table with varying length (varchars for instead) more than 8060 byte, but as soon as you exceed 8060 bytes of real data you will get an error.

/peter
0
 
LVL 15

Author Closing Comment

by:tim_cs
ID: 36548814
Ok, Thank You!!!
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I annotated my article on ransomware somewhat extensively, but I keep adding new references and wanted to put a link to the reference library.  Despite all the reference tools I have on hand, it was not easy to find a way to do this easily. I finall…
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question