Restore a SQL Server 2000 backup on SQL Server 2012 - sql-server

I have got following error message while restoring a backup from SQL Server 2000 to the latest version. I do not know the old version, now I am using SQL Server 2012 (11.0.3128.0).
The error message is:
Msg 3169, Level 16, State 1, Server FF101, Line 1
The database was backed up on a server running version 8.00.0760. That version is incompatible with this server, which is running version 11.00.3128. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server.

You are trying to restore a SQL Server 2000 database on SQL Server 2012. This is not supported.
You will need to restore your database on an instance of SQL Server 2005, 2008 or 2008 R2 first, then back it up from there, then restore the new backup on SQL Server 2012. Microsoft explains this here.

Related

Restore database in SQL Server from .bkp file [duplicate]

The database was backed up on a server running version 8.00.2039. That version is incompatible with this server, which is running version 11.00.2100. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server. (Microsoft.SqlServer.SmoExtended)
I am trying to restore and I get this message.. is there anyway to restore this backup without having to install SQL Server 2005?
SQL Server 2012 (v11.0) doesn't support direct upgrade from SQL Server 2000 (v8.0).
You'll have to use a "in-between" step restoring your SQL Server 2000 database to a SQL Server 2005 or 2008 instance, and then do a backup from there, in order to get your .bak file into the latest database server.
There's no trick or workaround for this - that's just the way it is, and you'll have to deal with it.
There are tons of blog posts on this topic, e.g.
Migration SQL Server 2000 to SQL Server 2012

Can we restore database to SQL Server 2017 taken from SQL Server 2012?

Can we restore a database which is created and have some data in SQL Server 2012. But, now i want to migrate from SQL Server 2012 to SQL Server 2017. Is it possible to take backup in SQL Server 2012 and restore it to SQL Server 2017. I need some other solutions if not possible to restore it. Because, it's almost 30GB of data, i can't get it back if not possible to restore.
Yes, SQL Server is backward compatible. You can restore a database from any previous version of SQL Server that was supported at the time of the release. For SQL Server 2017, you can therefore restore databases from SQL Server 2008 to 2017.
SQL Server, however, is not forward compatible. Once a database is restored on a more recent version of SQL Server you cannot create a back up of that database and restore it to an older version; even if the database had the correct compatibility setting. The upgrade process is one way.
"Once a database is restored on a more recent version of SQL Server you cannot create a back up of that database and restore it to an older version", But as a work around you can script database and execute it in an older version.

Can a full backup of a SQL Server 2005 db be restored using SQL Server 2012 Express?

I took a full backup of a SQL Server 2005 database, then restored it onto SQL Server 2008. I'm curious, was it a 2008 database at that point?
Anyways, I since did a full backup of it using SQL Server 2008 and now I have a machine with only SQL Server 2012 Express on it. When I try to restore from the backup file I get the following error:
TITLE: Microsoft SQL Server Management Studio
Restore of database 'CodeLib' failed. >(Microsoft.SqlServer.Management.RelationalEngineTasks)
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: The operating system returned the error '5(Access is denied.)' while attempting 'RestoreContainer::ValidateTargetForCreation' on 'D:\SQLdata\MSSQL10_50.SQLBESI\MSSQL\DATA\CodeLib.mdf'. (Microsoft.SqlServer.SmoExtended)
I ran SSMS as an Admin when I tried to restore it.

Can we restore SQL Server 2008R2 backup on SQL Server 2014?

Currently, one of our product running on the SQL Server 2008R2.
For new installation client want to go for SQL Serer 2014 because at this location Microsoft is not selling licence for the SQL Server 2008R2.
In SQL Server 2014, you can restore a user database from a database backup that was created by using SQL Server 2005 or a later version. However, backups of master, model and msdb that were created by using SQL Server 2005 through SQL Server 2012 cannot be restored by SQL Server 2014. Also, backups created in SQL Server 2014 cannot be restored by any earlier version of SQL Server.
Source
Yes.
Wen you restore database backup that created with older version of SQL Server in to new version, SQL Server automatically updated your database in new version. But don't change compatibility level of your database. You can change Compatibility level of your database after restore complete by following query :
ALTER DATABASE test SET COMPATIBILITY_LEVEL = 120
In SQL Server 2014 SP1 there are breaking changes to the restoreheader definition (3 new fields added).
If you use it, you should have a look at this thread:
breaking changes to SQL Server 2014 SP1 - restoreheader

Opening database .bak file in SQL Server 2008 R2

Here is the error I am getting:
the database was backed up on a server running version 8.00.2050. That version is incompatible with this server, which is running version 11.00.2218. Either restore the database on a server that supports the backup, or use a backup that is compatible with this server.
I understand that this .bak file is not going to be compatible with SQL Sserver 2008 r2, since I looked up what version of SQL Server that particular version is, and it's SQL Server 2000. But is there a third party solution for this? I tried installing SQL Server 2000 and it doesn't install.
11.00.2218 is SQL Server 2012, not SQL Server 2008 R2.
In order to restore a SQL Server 2000 database to SQL Server 2012, you need to first restore it on a 2005, 2008 or 2008 R2 server, back it up from there, then restore it to the SQL Server 2012 server.
You can do this by:
Installing an Evaluation Edition of any of those versions
Finding an existing instance already installed elsewhere
Installing Express Edition as long as (a) database size < 10GB and (b) you're not using any features not supported in Express

Resources