Can someone tell me how to password protect an existing SQL Server CE 4 file?
In the SqlCeEngine.Compact method, specify a password. Or you can use SqlCeCmd from a command line:
sqlcecmd40
-d "Data Source=C:\test.sdf;"
-z "Data Source=;Password=secret"