I have an application created for Win CE 5.0 using SQL CE 3.0.
Since my desktop application cannot access the db directly on the mobile device, it will copy the db to a temp file , make whatever changes, and copy back to the mobile. This has worked fine with Windows XP and Active Sync.
On Windows 7, if I copy the file from the desktop to the mobile device using Explorer, the .sdf file becomes corrupt. The mobile application cannot open it as it complains of a missing table. If I use SQL Analyser on the mobile device, I can connect to the
db and open it. The table list appears but no columns or indices are displayed and if I run a query "SELECT * FROM table1" it errors with table not found. If I close SQL Analyzer, then compact the db before opening it, everything is good again, I
can run queries against the table and the view shows me all the columns.
Does anyone have any idea as to where to start looking?
View Complete Post