Log in
::
Register
::
Not logged in
Home
Tags
Articles
Editorials
Stairways
Forums
Scripts
Videos
Blogs
QotD
Books
Ask SSC
SQL Jobs
Training
Authors
About us
Contact us
Newsletters
Write for us
Recent Posts
Recent Posts
Popular Topics
Popular Topics
Home
Search
Members
Calendar
Who's On
Home
»
SQL Server 2008
»
SQL Server 2008 - General
»
pages
15 posts, Page 1 of 2
1
2
»»
pages
Rate Topic
Display Mode
Topic Options
Author
Message
ramyours2003
ramyours2003
Posted Thursday, November 29, 2012 5:35 AM
Old Hand
Group: General Forum Members
Last Login: Yesterday @ 8:47 AM
Points: 359,
Visits: 1,487
HOW MANY datapages in sql ?
Post #1390455
GilaMonster
GilaMonster
Posted Thursday, November 29, 2012 5:52 AM
SSC-Dedicated
Group: General Forum Members
Last Login: Today @ 10:48 AM
Points: 37,743,
Visits: 30,022
Huh?
What are you asking?
Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild
: Discussions on DB performance with occasional diversions into recoverability
We walk in the dark places no others will enter
We stand on the bridge and no one may pass
Post #1390469
Sean Lange
Sean Lange
Posted Thursday, November 29, 2012 8:42 AM
SSCrazy Eights
Group: General Forum Members
Last Login: Yesterday @ 1:17 PM
Points: 8,641,
Visits: 8,273
Everybody knows this is 42
_______________________________________________________________
Need help? Help us help you.
Read the article at
http://www.sqlservercentral.com/articles/Best+Practices/61537/
for best practices on asking questions.
Need to split a string? Try Jeff Moden's
splitter
.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs
Post #1390617
ScottPletcher
ScottPletcher
Posted Thursday, November 29, 2012 3:14 PM
Ten Centuries
Group: General Forum Members
Last Login: Wednesday, May 22, 2013 3:56 PM
Points: 1,324,
Visits: 1,778
Depends on how many bytes in table, and how long a row is.
A SQL page is 8K, with 8060 total bytes available for data. Each row resides on a single page (excluding special column types).
So if every row takes, say, 4100 bytes, each would take a whole page, with the rest of that page unuseable except to expand the existing row.
SQL DBA,SQL Server MVP('07, '08, '09)
One man with courage makes a majority. Andrew Jackson
Post #1390887
sanket kokane
sanket kokane
Posted Friday, November 30, 2012 4:34 AM
Old Hand
Group: General Forum Members
Last Login: 2 days ago @ 5:04 AM
Points: 323,
Visits: 966
ScottPletcher (11/29/2012)
Depends on how many bytes in table, and how long a row is.
A SQL page is 8K, with 8060 total bytes available for data. Each row resides on a single page (excluding special column types).
you sounds like only one row per page ,right ?
http://msdn.microsoft.com/en-us/library/ms190969%28v=sql.105%29.aspx
So if every row takes, say, 4100 bytes, each would take a whole page, with the rest of that page unuseable except to expand the existing row.
I think remaining space can be used by other rows .
Please can you share any link related it ?
-----------------------------------------------------------------------------
संकेत कोकणे
Post #1391207
Eugene Elutin
Eugene Elutin
Posted Friday, November 30, 2012 4:45 AM
SSCrazy
Group: General Forum Members
Last Login: Yesterday @ 10:39 AM
Points: 2,556,
Visits: 4,398
ramyours2003 (11/29/2012)
HOW MANY datapages in sql ?
Sean Lange (11/29/2012)
Everybody knows this is 42
No, you're wrong, they changed it! It's 321 since Thanksgiving!
They may cut it back to 238, there is still discussion in a senate. Republicans want it to be cut down! Let's pray for Obama
That would be a great question for Question Of The Day...
_____________________________________________
"The only true wisdom is in knowing you know nothing"
"O skol'ko nam otkrytiy chudnyh prevnosit microsofta duh!"
(So many miracle inventions provided by MS to us...)
How to post your question to get the best and quick help
Post #1391216
anthony.green
anthony.green
Posted Friday, November 30, 2012 4:45 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
sanket kokane (11/30/2012)
ScottPletcher (11/29/2012)
Depends on how many bytes in table, and how long a row is.
A SQL page is 8K, with 8060 total bytes available for data. Each row resides on a single page (excluding special column types).
you sounds like only one row per page ,right ?
http://msdn.microsoft.com/en-us/library/ms190969%28v=sql.105%29.aspx
So if every row takes, say, 4100 bytes, each would take a whole page, with the rest of that page unuseable except to expand the existing row.
I think remaining space can be used by other rows .
Please can you share any link related it ?
As long as the second row is 3900 bytes or less.
The example was that if every row takes 4100 bytes, so that would mean that only 1 row can be stored on a page, the remaining 3900 bytes could only ever be used by the row occuping the page.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1391217
sanket kokane
sanket kokane
Posted Friday, November 30, 2012 4:58 AM
Old Hand
Group: General Forum Members
Last Login: 2 days ago @ 5:04 AM
Points: 323,
Visits: 966
anthony.green (11/30/2012)
sanket kokane (11/30/2012)
ScottPletcher (11/29/2012)
Depends on how many bytes in table, and how long a row is.
A SQL page is 8K, with 8060 total bytes available for data. Each row resides on a single page (excluding special column types).
you sounds like only one row per page ,right ?
http://msdn.microsoft.com/en-us/library/ms190969%28v=sql.105%29.aspx
So if every row takes, say, 4100 bytes, each would take a whole page, with the rest of that page unuseable except to expand the existing row.
I think remaining space can be used by other rows .
Please can you share any link related it ?
As long as the second row is 3900 bytes or less.
The example was that if every row takes 4100 bytes, so that would mean that only 1 row can be stored on a page, the remaining 3900 bytes could only ever be used by the row occuping the page.
what if second row size > 3900 int this case .
Row overflow can take place or not ?
or it will go directly to the another new page?
-----------------------------------------------------------------------------
संकेत कोकणे
Post #1391221
anthony.green
anthony.green
Posted Friday, November 30, 2012 5:02 AM
SSCertifiable
Group: General Forum Members
Last Login: Friday, April 12, 2013 3:51 AM
Points: 5,075,
Visits: 4,831
No as it has to be the row which overflows, not the page. The row is not overflowing as its 4100 bytes, for row overflow to occur the whole row must be > 8060 bytes.
Want an answer fast? Try here
How to post data/code for the best help - Jeff Moden
Need a string splitter, try this - Jeff Moden
How to post performance problems - Gail Shaw
CrossTabs-Part1
&
Part2 - Jeff Moden
SQL Server Backup, Integrity Check, and Index and Statistics Maintenance - Ola Hallengren
Managing Transaction Logs - Gail Shaw
Troubleshooting SQL Server: A Guide for the Accidental DBA - Jonathan Kehayias and Ted Krueger
Post #1391224
sanket kokane
sanket kokane
Posted Friday, November 30, 2012 5:12 AM
Old Hand
Group: General Forum Members
Last Login: 2 days ago @ 5:04 AM
Points: 323,
Visits: 966
anthony.green (11/30/2012)
No as it has to be the row which overflows, not the page. The row is not overflowing as its 4100 bytes, for row overflow to occur the whole row must be > 8060 bytes.
sorry if I not ask my doubt clearly
my first row size = 4100
(Remaining page size = 3960)
my second row size = 5000
(extra byte 1040)
so cant my second row stored on same page as of first row ? and overflowing my second row remaining bytes to new page ?
-----------------------------------------------------------------------------
संकेत कोकणे
Post #1391229
« Prev Topic
|
Next Topic »
15 posts, Page 1 of 2
1
2
»»
Permissions
You
cannot
post new topics.
You
cannot
post topic replies.
You
cannot
post new polls.
You
cannot
post replies to polls.
You
cannot
edit your own topics.
You
cannot
delete your own topics.
You
cannot
edit other topics.
You
cannot
delete other topics.
You
cannot
edit your own posts.
You
cannot
edit other posts.
You
cannot
delete your own posts.
You
cannot
delete other posts.
You
cannot
post events.
You
cannot
edit your own events.
You
cannot
edit other events.
You
cannot
delete your own events.
You
cannot
delete other events.
You
cannot
send private messages.
You
cannot
send emails.
You
may
read topics.
You
cannot
rate topics.
You
cannot
vote within polls.
You
cannot
upload attachments.
You
may
download attachments.
You
cannot
post HTML code.
You
cannot
edit HTML code.
You
cannot
post IFCode.
You
cannot
post JavaScript.
You
cannot
post EmotIcons.
You
cannot
post or upload images.
Copyright © 2002-2013 Simple Talk Publishing. All Rights Reserved.
Privacy Policy.
Terms of Use.
Report Abuse.