Core component of SQL Server for storing, processing, and securing data
Not sure I understand that the question. You can combine "regular" compression with XML compression. For instance:
CREATE TABLE kompis (id int NOT NULL,
data varchar(200) NOT NULL,
xmldata xml NULL,
CONSTRAINT pk_kompis PRIMARY KEY (id)
WITH (DATA_COMPRESSION = PAGE, XML_COMPRESSION = ON)
)
SELECT * FROM sys.partitions WHERE object_id = object_id('kompis')
The output:
ROW compression is really only an alternative storage format, and not really compression. DATA compression is, but it is still a general form of compression, and it is not likely to apply to a binary data type like the XML data type. XML compression, on the other hand, is particularly aimed for XML.As you can see in the screenshot, there are separate columns in sys.partitions for "normal" compression and XML compression.