Search:     Advanced search
Browse by category:
C/C++   |   Java   |   Oracle/Database   |   SAP   |   ASP .NET   |   Mainframe-DB2   |   Freshers

What is Data Compression?

Add comment
Views: 112
Votes: 0
Comments: 0
In SQL SERVE 2008 Data Compression comes in two flavors:

Row Compression
Page Compression
Row Compression

Row compression changes the format of physical storage of data. It minimize the metadata (column information, length, offsets etc) associated with each record. Numeric data types and fixed length strings are stored in variable-length storage format, just like Varchar.

Page Compression

Page compression allows common data to be shared between rows for a given page. Its uses the following techniques to compress data:

Row compression.
Prefix Compression. For every column in a page duplicate prefixes are identified. These prefixes are saved in compression information headers (CI) which resides after page header. A reference number is assigned to these prefixes and that reference number is replaced where ever those prefixes are being used.
Dictionary Compression.

Dictionary compression searches for duplicate values throughout the page and stores them in CI. The main difference between prefix and dictionary compression is that prefix is only restricted to one column while dictionary is applicable to the complete page.
Others in this Category
document What does TOP Operator Do?
document How to rebuild Master Databse?
document What is Filestream?
document Q: What are the properties of the Relational tables?
document What is NOT NULL Constraint?
document Q: Explain the concept of NULL
document What does it mean to have QUOTED_IDENTIFIER ON? What are the implications of having it OFF?
document What is XPath?
document What is SQL Server Agent?
document How to copy the tables, schema and views from one SQL Server to another?
» More articles



RSS