Quantcast
Channel: SQL Server Compact Forum
Viewing all articles
Browse latest Browse all 193

Strange behaviour when opening a DB created created on PC on Windows CE 5.0

$
0
0

Hi to all,

I have a script that translates a MySQL DB to SQL Compact 3.5 with SSMA and ErikEj tools. Basically the MySQL DB is first converted to an SQL Server 2005 or 2008 DB with SQL Server Migration Assistant then the SQL Sever DB is converted to SQL Compact 3.5 withe ErikEj tools. That part works fine.

The goal of all this is to have a copy of the MySQL DB that can be used on a Windows CE 5.0 smart device.

I ran across the re-indexing problem on the first opening on WCE but behaviour is inconsistent. Sometimes the SDF is processed correctly, sometimes it crashes on the first query, sometimes it can't be opened (parameter error or alike). The re-indexing in itself is not a problem as the DB is small, it doesn't take too long (but if it can be skipped...), but the fact that the DB cannot be opened or queried is.

I must add that I regularly update the SDF on the smart device (close the connection, replace the file, re-open it) and this is when the problems occurs. I can see that doing that too fast results in the DB not being re-indexed (size doesn't change), while waiting before re-opening is not very reliable.

Is there a way to be sure that the DB can be opened and queried ?

Thanks.



Viewing all articles
Browse latest Browse all 193

Trending Articles