Specifying the maximum database size using SQLSERVER.MOBILE.OLEDB.3.0

Connection string

This Microsoft.SQLSERVER.MOBILE.OLEDB.3.0 connection string can be used for connections to SQL Server Compact.

The maximum size of the database is by default 128 MB. Override this by using the following connection string.

Provider=Microsoft.SQLSERVER.MOBILE.OLEDB.3.0;Data Source=myPath\myData.sdf;
SSCE:Max Database Size
=256;