Monday, January 24, 2011

Comparison of SQL Server Compact 4 and SQL Server Express 2008 R2

Now that SQL Server Compact 4 has been released, some developers are curious about the differences between SQL Server Compact 4.0 and SQL Server Express 2008 R2. I have updated the comparison table from the excellent discussion of the differences between Compact 3.5 and Express 2005 here to reflect the changes in the newer versions of each product.

Feature

SQL Server Compact 4.0SQL Server
Express 2008 R2
Deployment/Installation Features
Installation size2.5 MB download size
37 MB expanded on disk
74 MB download size
> 300 MB expanded on disk
ClickOnce deploymentYesYes
Privately installed, embedded, with the applicationYesNo
Non-admin installation optionYesNo
Runs on Windows Mobile platformNoNo
Installed centrally with an MSIYesYes
Runs in-process with applicationYesNo
64-bit support YesYes
Runs as a serviceNo - In process with the applicationYes
Data file features
File formatSingle fileMultiple files
Data file storage on a network shareNoNo
Support for different file extensions YesNo
Database size support4 GB10 GB
XML storageYes - stored as ntextYes
Binary (BLOB) storageYes - stored as image Yes
FILESTREAM supportNoYes
Code free, document safe, file formatYesNo
Programmability
Transact-SQL - Common Query Features YesYes
Procedural T-SQL - Select Case, If, featuresNoYes
Remote Data Access (RDA)NoNo

(more...)