将 SQL 数据库 (mdf) 迁移到 SQL Compact Edition (sdf) 的方法

发布于 2024-07-29 19:20:29 字数 644 浏览 5 评论 0原文

我有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

一曲琵琶半遮面シ 2024-08-05 19:20:29

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

说好的呢 2024-08-05 19:20:29

使用 SDFViewer 实用程序:

转到工具菜单 > 来自 SQL Server

说得够多了......

Use the SDFViewer utility:

go Tools Menu > From SQL Server

Enough said....

自控 2024-08-05 19:20:29

如果您编写 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文