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?
LVL 1
rkulpAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
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.

SimonCommented:
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.
0

Experts Exchange Solution brought to you by

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.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2008

From novice to tech pro — start learning today.