Specifying the maximum database size using SqlCeConnection

Connection string

This .NET Compact Framework Data Provider for SQL Server Mobile 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.

Data Source=MyData.sdf;Max Database Size=256;Persist Security Info=False;