Specifying the maximum buffer 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 largest amount of memory that can be in use before the server starts flushing changes to disk is by default 640 kB. Override this by using the following connection string.

Data Source=MyData.sdf;Max Buffer Size=1024;Persist Security Info=False;