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?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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.

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
rkulpAuthor Commented:
Thanks. I ended up doing that before I read your response. It is right on. I appreciate your help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.