将 Sql Server 2005 数据库备份还原到 Sql Server 2000

发布于 2024-07-11 08:07:02 字数 76 浏览 7 评论 0原文

有没有办法将 Sql Server 2005 数据库恢复到 Sql Server 2000? 我也无法附加它。 有什么工具、想法等吗?

Is there a way to restore an Sql Server 2005 DB to Sql Server 2000? I'm unable to attach it either. Any tools, ideas etc?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(4

放血 2024-07-18 08:07:02

我发现 Microsoft 提供了这个实用程序,名为 Microsoft SQL Server Database Publishing Wizard 1.1 http://www.microsoft.com/downloads/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en。 它生成一个包含所有架构和数据的脚本,并且可以在 SQL Server 2000 上运行。它会重新创建数据库。 无论如何,它对我有用。

I found this utility from Microsoft called Microsoft SQL Server Database Publishing Wizard 1.1 http://www.microsoft.com/downloads/details.aspx?FamilyId=56E5B1C5-BF17-42E0-A410-371A838E570A&displaylang=en. It generates a single script that contains all the schema and the data and can be run on SQL Server 2000. It recreates the database. It worked for me anyway.

眉黛浅 2024-07-18 08:07:02

因为SQL 2005比SQL 2000有更多的新功能/语法。您不能直接进行恢复。

我会这样做。 首先从 SQL 2005 生成架构脚本。 在 SQL 2000 上运行脚本以创建数据库架构。 然后使用 SSIS 或导入/导出工具将数据从 SQL 2005 导入到 SQL 2000。

Because SQL 2005 has more new features/syntax than SQL 2000. You can not do the restore directly.

I'll do it this way. Generate the schema script from SQL 2005 first. Run the script on SQL 2000 to create the db schema. Then import the data from SQL 2005 to SQL 2000 by using SSIS or Import/Export tools.

放血 2024-07-18 08:07:02

www.sqlaccessories.com 提供了一些很棒的工具,使您能够做到这一点(使用他们的结构/数据差异工具) 。
我还没有尝试直接从管理工作室做这件事。

当然,如果数据库使用sql server 2005的特定功能,您就必须做一些手动调整。

从他们的简介中:“您甚至可以同步不同版本的 MS SQL Server 上的数据库,例如一个在 SQL Server 2005 上,另一个在 SQL Server 2008 上”,

我可以确认这是可行的。

www.sqlaccessories.com provide some great tools that enable you to do this (using their stuctural/data diff tools).
I've not tried doing it directly from the management studio.

Of course, if the db using sql server 2005 specific features, you'll have to do some manual tweaking.

From their blurb: "You can even synchronize databases that are on different versions of MS SQL Server, e.g. one on SQL Server 2005, and the other on SQL Server 2008"

I can confirm that this works.

冷夜 2024-07-18 08:07:02

执行此操作的最佳方法是将备份恢复到 SQL Server 2005 实例,然后将数据导出到 SQL 2000 实例。 您可以通过多种方式进行导出。 您可以将所有数据转换为平面文件、使用包或将数据库编写为 SQL 脚本并在 SQL 2000 数据库上运行脚本。

The best way to do this is to restore the back up to a SQL Server 2005 instance, then do an export of the data to the SQL 2000 instance. There are several way you can do the export. You can either convert all the data out to flat files, use a package, or script the db to SQL and run the scripts on the SQL 2000 database.

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