Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Methods to migrate SQL Database (mdf) to SQL Compact Edition (sdf)

I have 4 SQL Server 2005 db's that I want to move to SQL CE. I know I cannot keep the SProcs,Views, and Functions(Differences Between SQL Server Compact and SQL Server) but I would like to keep everything else.

I have tried this app, SQL Server to SQL Server Compact Edition Database Copy but it errors out on me. I have the source and am looking into it but I thought I'd check and make sure I wasn't over complicating the solution to my ACTUAL goal.

Is there a simple, can be one shot, way of converting standard SQL .mdf to SQL CE .sdf?

Right now my best idea is to set up Replication to the SQL CE from the SQL 2005 Standard.

like image 631
Refracted Paladin Avatar asked Aug 06 '09 05:08

Refracted Paladin


3 Answers

http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html

like image 111
Danny Varod Avatar answered Sep 18 '22 05:09

Danny Varod


1.Use SQL Server to SQL Server Compact Edition Database Copy with sqlcompact 3.1 or 3.0 not sql compact 3.5 You can use a virtual machine like sun virtual box, install sql compact 3 or 3.1 on it, and convert your database inside it

2.You can convert to sql compact manually

like image 25
emdadgar2 Avatar answered Sep 21 '22 05:09

emdadgar2


Use the SDFViewer utility:

go Tools Menu > From SQL Server

Enough said....

like image 26
Khaled Abdo Avatar answered Sep 22 '22 05:09

Khaled Abdo