We help IT Professionals succeed at work.

Copy Data From SQL Server CE 3.5 to SQL Server 2008 R2 Express

I have a SQL Server CE 3.5 database and a SQL Server 2008 R2 Express version of the same database. However, all the data in the SQL Server 2008 R2 Express database was lost when an empty CE database was synchronized with the Express database. Instead of filling the empty one, it emptied the full one. I would like to refill it from a backup of the CE database. What is the most efficient way to do that? As a last resort (maybe it should be first) I can delete the Express db and migrate the CE database using script created by ExportSqlCe. If there is an easier way to migrate the data, then that is what I would prefer doing. Any suggestions?
Comment
Watch Question

Principal Analyst
Commented:
As you have no other answers yet...

One option would be to use just the insert statements from the script created by ExportSqlCe to insert into your 2008R2 Express database, but whether it would work depends on if you have modified the tables in the 2008R2 version since creating it.

Author

Commented:
Thanks. I ended up doing that before I read your response. It is right on. I appreciate your help.