将 SQL 数据库 (mdf) 迁移到 SQL Compact Edition (sdf) 的方法
我有 4 个 SQL Server 2005 数据库,我想将其迁移到 SQL CE。 我知道我无法保留 SPprocs、视图和函数(之间的差异SQL Server Compact 和 SQL Server),但我想保留其他所有内容。
我已经尝试过这个应用程序,SQL Server 到 SQL Server Compact Edition 数据库复制,但我出错了。 我有来源并且正在研究它,但我想我应该检查并确保我没有使解决方案过于复杂化以实现我的实际目标。
有没有一种简单、一次性的方法可以将标准 SQL .mdf
转换为 SQL CE .sdf
?
现在我最好的想法是从 SQL 2005 标准设置到 SQL CE 的复制。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
http://erikej.blogspot.com /2010/02/如何使用-exportsqlce-to-migrate-from.html
http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html
1.使用SQL Server SQL Server Compact Edition 数据库复制,使用 sqlcompact 3.1 或 3.0,而不是 sql compact 3.5
您可以使用像sun virtual box这样的虚拟机,在其上安装sql Compact 3或3.1,并在其中转换数据库
2.您可以手动转换为sql Compact
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
使用 SDFViewer 实用程序:
转到工具菜单 > 来自 SQL Server
说得够多了......
Use the SDFViewer utility:
go Tools Menu > From SQL Server
Enough said....
如果您编写 2005 年的对象脚本并在 CE 中运行该脚本会怎样? 这将为您提供数据库的结构,然后您可以选择/插入?
我还没有尝试过这个,但是 Management Studio 中的 SQL 数据库导出/导入工具怎么样?
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?