Read only access 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.

Use this one to open a read-only copy of the database.

Data Source=MyData.sdf;File Mode=Read Only;Persist Security Info=False;