简体   繁体   English

在SQL Server 2005上恢复SQL Server 2000备份

[英]SQL Server 2000 backup recovering on SQL Server 2005

I've got a SQL Server database backup (file extension .bak ) from an project of 12 y/a which I tried to restore on SQL Server 2005. 我从一个12岁的项目中获得了一个SQL Server数据库备份(文件扩展名.bak ),我试图在SQL Server 2005上进行恢复。

But this gave me an error that it was not the right version.. 但这给了我一个错误,那就是它不是正确的版本。

So I'm trying to find a SQL Server 2000 version to see if I can restore it with this but I can't find any version that works. 因此,我试图找到一个SQL Server 2000版本,以查看是否可以使用此版本进行还原,但是找不到任何有效的版本。

Is there another program to save my backup? 是否有另一个程序可以保存备份?

Copied over from msdn forums : msdn论坛复制:

1) Go to restore database 1)转到还原数据库

2) Select the database that you want to back up to 2)选择要备份到的数据库

3) Locate the backup file on disk. 3)在磁盘上找到备份文件。 You may have to put it into the MSSQL Server -> MSSQL.1-> MSSQL -> Backup Folder. 您可能必须将其放入MSSQL Server-> MSSQL.1-> MSSQL-> Backup Folder。 It must be a .bak file. 它必须是.bak文件。

4) Select the back that want to restore from the available backups. 4)选择要从可用备份中还原的背面。

5) Go to the top left "options" property and when you do that select "overrite existing database". 5)转到左上角的“选项”属性,然后选择“覆盖现有数据库”。

6) Now make sure that the path to the files on database to be restored are correct in this same dialog view. 6)现在,请确保在同一对话框视图中要还原的数据库文件的路径正确。 Look at the paths to the database file and the log file and make damn sure that they are the correct ones for the database to be restored. 查看数据库文件和日志文件的路径,并确保它们是要还原的数据库的正确路径。 The problem here is that those paths are going to be for the filesystem that the backup came from, not the one you are goning to put the restore onto. 这里的问题是,这些路径将用于备份所来自的文件系统,而不是您要用于还原的路径。

Just to add to that, if you are restoring a database to a new server that does not have the database already in it (to restore to), create a sham database with the same name, then restore to it with the overwrite settings mentioned above. 只是要补充一点,如果要将数据库还原到其中没有数据库的新服务器(要还原到),请创建一个具有相同名称的伪数据库,然后使用上述覆盖设置还原到该数据库。 。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM