|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
Disapointing and Lame trick question.
The question asked which row had the "largest defined row size", not "the largest storage size".
The answer in the the reference material is for a differant question. Storage size and defined size are two differant concepts.
The following quote is from the books online section on how to choose between ROW and PAGE compression.
Compression can allow more rows to be stored on a page, but does not change the maximum row size of a table or index. http://msdn.microsoft.com/en-us/library/cc280449.aspx
So even though the maximum storage size of the data is less with compression on, the defined maximum row size of the data is not any differant.
|
|
|
|
|
SSC Eights!
      
Group: General Forum Members
Last Login: Wednesday, August 17, 2011 7:09 AM
Points: 869,
Visits: 963
|
|
SanDroid (11/17/2010)
Disapointing and Lame trick question. The question asked which row had the "largest defined row size", not "the largest storage size". The answer in the the reference material is for a differant question. Storage size and defined size are two differant concepts. The following quote is from the books online section on how to choose between ROW and PAGE compression. Compression can allow more rows to be stored on a page, but does not change the maximum row size of a table or index. http://msdn.microsoft.com/en-us/library/cc280449.aspxSo even though the maximum storage size of the data is less with compression on, the defined maximum row size of the data is not any differant.
I was thinking along the same path, although I thought it still was a good question because I did learn something new.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
chrs-513176 (11/17/2010) I was thinking along the same path, although I thought it still was a good question because I did learn something new.
I had already learned the differance between Defined Row size and Storage Row size during my upgrading SQL server skills course.
The differance actually saved us from purchasing a recomended unecessary upgrade for a location.
They were having issues with maxing out the Network during the transfer of a large table that was filled with a lot of un-normalized data. Since the bottle-neck was not in the Disk-IO or the amount of storage being used compression would not have helped. Instead we normalized the data that was being requested from ten large tables joined by an excel formula to one table of just the data being requested using a view.
Creating the view cost less than SQL 2008 Enterprise.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Today @ 5:42 AM
Points: 3,250,
Visits: 65,542
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 2:49 PM
Points: 2,163,
Visits: 2,150
|
|
mtassin (11/17/2010) I agree. I got this wrong for the same reason. The Row Size doesn't change, compression just lets more data be stored on a page.
But in this case compression actually makes it so less data fits on a page because of the metadata overhead.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
UMG Developer (11/17/2010)
mtassin (11/17/2010) I agree. I got this wrong for the same reason. The Row Size doesn't change, compression just lets more data be stored on a page.But in this case compression actually makes it so less data fits on a page because of the metadata overhead.
How does that change that the questioned asked about the "defined row size" not the "storage row size"?
These are differant concepts and alters the answer completely.
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 4:33 AM
Points: 5,122,
Visits: 20,365
|
|
|
|
|
|
SSCrazy
      
Group: General Forum Members
Last Login: Yesterday @ 2:49 PM
Points: 2,163,
Visits: 2,150
|
|
SanDroid (11/17/2010)
UMG Developer (11/17/2010)
mtassin (11/17/2010) I agree. I got this wrong for the same reason. The Row Size doesn't change, compression just lets more data be stored on a page.But in this case compression actually makes it so less data fits on a page because of the metadata overhead. How does that change that the questioned asked about the "defined row size" not the "storage row size"? These are differant concepts and alters the answer completely.
I couldn't find any definition for "defined row size", do you have a link to a definition? Does it include metadata?
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Thursday, January 31, 2013 8:01 AM
Points: 1,232,
Visits: 1,046
|
|
UMG Developer (11/17/2010) [quote] I couldn't find any definition for "defined row size", do you have a link to a definition? Does it include metadata?
Exactly my point. The term in the question is "defined row size". Not storage row size or maximum row size.
Compression can allow more rows to be stored on a page, but does not change the maximum row size of a table or index. http://msdn.microsoft.com/en-us/library/cc280449.aspx
Also I have noticed that, as has been pointed out by others, the storage concepts in the questions explination may not factual when executed.
|
|
|
|
|
Hall of Fame
       
Group: General Forum Members
Last Login: Yesterday @ 2:31 PM
Points: 3,418,
Visits: 3,438
|
|
SanDroid (11/17/2010)
UMG Developer (11/17/2010) [quote] I couldn't find any definition for "defined row size", do you have a link to a definition? Does it include metadata?Exactly my point. The term in the question is "defined row size". Not storage row size or maximum row size. Compression can allow more rows to be stored on a page, but does not change the maximum row size of a table or index. http://msdn.microsoft.com/en-us/library/cc280449.aspx Also I have noticed that, as has been pointed out by others, the storage concepts in the questions explination may not factual when executed.
Yes, I agree with this. Compression has an effect on the storage but does not change the defined row size.
|
|
|
|