Share via


The CompressionLevel property specifies the amount of compression that will be used by the compression routines during Push and Pull operations.

object.CompressionLevel(value)

Applies To

SQL Server Compact 3.5 RDA object

Generic Parameters

Parameter

Description

value

The compression level to use. Valid values are 0 to 6 (inclusive), with a setting of 0 representing no compression and a setting of 6 enabling maximum compression.

Data Type

Short

Modifiable

Read/write

Prototype

HRESULT get_CompressionLevel(short *pVal);
HRESULT put_CompressionLevel(short newVal);

The CompressionLevel property lets you customize compression to meet your specific needs. A lower value causes the compressor to run more quickly, but the data transmitted is not tightly compressed and takes longer to transmit. A higher compression level value will cause more processing on the server running IIS, but will reduce data transfer times.

The actual amount of data compression depends on the type of data being compressed.

A value of 0 turns off all compression. The default value is 1. This uses the lowest amount of processor time while still providing some compression.