I'm having a strange issue with SQL Compact database. I wonder if somebody experienced same issue and know the solutions.
1. I created a new SQL Compact 3.5 database from Visual Studio 2010. This computer is Windows 7 and SQL Server Compact 3.5 SP2 is installed.
2. I can open this new database with read-only mode on this computer (and few other Windows 7 computers). But I cannot open this database with read-only mode on Windows Vista. However, once I open this database with read-write mode on Windows Vista, I can open this database with read-only mode on Windows Vista ever after.
I tried two different Windows Vista computers and results were same. I didn't set database password nor encryption.
Tested connection string is:
Provider=Microsoft.SQLSERVER.CE.OLEDB.3.5;Data Source=C:\Users\myname\Desktop\Test.sdf;Mode=Read;Persist Security Info=False;SSCE:Temp File Directory=c:\temp
I found very similar senario:
http://social.msdn.microsoft.com/Forums/en-US/sqlce/thread/72fcc4f2-6c2e-402c-8785-926ed7d50ca5/
But I don't want to open it with read-write mode even once...