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

你。 提交于 2019-12-04 17:57:49

问题


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.


回答1:


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




回答2:


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




回答3:


Use the SDFViewer utility:

go Tools Menu > From SQL Server

Enough said....




回答4:


What if you scripted the objects from 2005 and ran the script in CE? That'd give you the structure of the DB, then you could select/insert?

I haven't tried this, but what about SQL's DB export/import tools in management studio?



来源:https://stackoverflow.com/questions/1237086/methods-to-migrate-sql-database-mdf-to-sql-compact-edition-sdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!