Solved

SQL Data Page Storage

Posted on 2011-09-15
2
327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

As technology users and professionals, we’re always learning. Our universal interest in advancing our knowledge of the trade is unmatched by most industries. It’s a curiosity that makes sense, given the climate of change. Within that, there lies a…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
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…

636 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