2

有什么方法可以将 2005 年的数据库备份导入 2008 年速成版。我不得不求助于编写数据库脚本,然后通过 DTS 导入所有数据。每当我尝试直接从备份文件导入时,它都会说不要导入到新版本的 sql server 中,否则我会收到以下错误。

标题:Microsoft SQL Server 管理工作室

指定的演员表无效。(SqlManagerUI)

4

4 回答 4

2

SQL 2005 备份应该在 2008 年恢复没有问题(我自己做过很多次)。关于版本,您收到了哪些确切的错误消息?另一个错误(Specified cast is not valid)似乎是 Management Studio 错误,而不是服务器错误。您拥有 2008 服务器的完整权限吗?

看看这个问题 - any-reason-to-have-sql-server-2005-and-2008-installed-on-same-machine - 讨论了恢复 SQL2005 备份和附加 SQL2005 数据文件。

(当然你不能附加生产数据库。要附加非生产数据库只需分离它们,制作这些文件的文件级副本并将副本附加到新服务器。原始文件也需要附加到原始服务器:))

于 2008-11-16T18:00:55.180 回答
0

I imagine that you are in a development process where your data will have to be regularly copied to you SQL 2008 server.

You can then think of configuring a replication between the SQL 2005 server (publisher) and SQL Server Express 2008 (suscriber). Depending on your requirements, you have the choice between snapshot or merge replication. If no update is done on the suscriber side, go for snapshot.

Once you want to have your 2008 server running independantely from the publisher, just delete the replication.

于 2008-11-16T21:33:37.730 回答
0

一个有效的 SQL Server 2005 Express 备份文件应该能够恢复到 SQL Server 2008 Express。如果 SQL Server 2005 备份来自 Standard 或 Enterprise 版本,您可能会遇到将其还原到 Express 的问题。创建备份的用户上下文不应影响恢复该备份的能力。

您可以做的一件事是尝试运行还原操作作为验证,而不实际尝试运行还原。这将告诉您备份文件是否有效。您可以使用以下语法:

RESTORE VERIFYONLY
FROM yourbackupfile.bak
于 2010-04-16T13:50:01.627 回答
0

如果可能的话,我还建议尝试简单地从 2005 年分离原始数据库,然后附加 2008 年版的文件。

虽然我自己只在标准版上尝试过,但它在保持数据库设置为 2005 的兼容模式下完美运行。

您是否尝试过运行升级顾问http://www.microsoft.com/download/en/details.aspx?id=11455 - 它可能会突出显示升级原始数据库的问题。

于 2011-07-14T09:46:17.747 回答