Is SQL Server 2005 database compatible with 2008? - sql-server

I don't know if the title is correct but well what I'd like to ask: is it possible to import my database from SQL Server 2005 to 2008 or is the database in SQL Server 2005 compatible with 2008? I'm still a newbie.
Thanks

You can restore an SQL Server 2005 database on SQL Server 2008.
You can not restore an SQL Server 2008 database on SQL Server 2005.
Generally speaking, at the time of writing,
you can restore any database starting from SQL Server 2005 on a newer version of SQL Server (up to 2016), and
you can not restore any database on an earlier version.
You might want to increase the compatibility level of your DB after restoring it on a newer SQL Server version.

Yes. They are compatible. You can use a backup to transfer all the data.

Related

Snapshot for different SQL Server Version

Can I create a snapshot from SQL Server 2012 on a SQL Server 2008 R2 Server?
The goal is to build reporting and queries without locking the live database.
I need only a DB copy (Getdate()-1)
No, the SQL Server 2012 snapshot has specific SQL Server 2012 features in it that are not compatible with SQL Server 2008 R2. These are incompatibilities that you will not see. They are deep in the SQL Server engine. You cannot do this.
It's a similar concept to trying to restore a SQL Server 2012 database backup to a SQL Server 2008 R2 instance. The higher database version cannot backstep to a lower version.
You need to use a SQL Server of the same level or higher (I believe or higher) for your snapshot server.

SQL Server express backup

Can I use a SQL Server Express database backup file to restore that database on a full fledged version of SQL Server. I am particularly looking at SQL Server 2008 Express to SQL Server 2012 Enterprise. And if so how?
Lets be clear about one thing first, SQL Server Express , Standard and Enterprise are the Editions.
SQL Server 2005 , 2008, 2008 R2 and 2012 are SQL Server versions.
Now coming to your question whether you can restore a database from 2008 Express to 2012 Enterprise?
The Simple Answer would be YES you can.
A couple of things to keep in mind.
SQL Server Editions has no limitation you can backup and restore databases from one Edition to another without any restrictions (Except SQL Server Express which can only accommodate databases upto 10 GB). Other than this size limitation in SQL Server express, all is good.
Whereas SQL Server Versions has a very strict limitation, You can go up 3 versions but cannot go down at all.
For example if you had taken a backup on SQL Server 2008 (regardless of Edition) you can restore this backup onto a SQL Server 2008, 2008 R2 , 2012 and I think also on 2014. But you cannot restore this onto a SQL Server 2005.
I hope the explanation clears some confusions.

SQL Server 2014: Restore old backup

I'm trying to restore an old database backup in SQL Server 2014, and I'm getting the error below:
How can I go through this?
I'm importing the backup in the follow way:
Tasks -> Restore -> Database
Select device option -> Pick up the .bak file
At the options select Overwrite
ok
Thanks in advance.
You are trying to restore a SQL Server 2000 database on SQL Server 2014. 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 2014. Microsoft explains this here how to on SQL Server 2012.
I don't think you'll be able to jump that many versions from a SQL 2000 backup straight to 2014. It's just too much of a jump with too many changes to be made.
Restore it to SQL 2008 first, then back this up and then restore to 2014.
Here's some links to guides that should be able to help you;
http://sqlmag.com/sql-server-2014/sql-select-steps-migrate-sql-server-2000-sql-server-2014
https://blogs.technet.microsoft.com/mdegre/2012/06/15/migration-sql-server-2000-to-sql-server-2012/
First of all not, that you can restore your SQL Server database backups on a different version of SQL Server, but with one tiny restriction. You can restore your backups only upwards, it means that you can restore from SQL Serve 2005 to 2008 or from 2012 to 2014.
But it has to be admitted, there is no way of restoring your database backups from SQL Server 2012 to 2008. SQL Server has such restriction because every new version has modifications in the binary of the database and their storage.
Also, you can't jump forward two versions, for example, you cannot restore a database backups from SQL Server 2000 to SQL Server version 2014 as you are trying.
As it has recommended above you need to restore in few steps. Firstly restore it on SQL Server 2005 or 2008. make a full backup and then restore it on SQL Server 2014.

Convert /Attach SQL Server 2005 .mdf to 2008 .mdf?

I have SQL Server 2005 .mdf file and now I need to attached the same to SQL Server 2008
so how can I do the same.
Is any such tool is available , which convert 2005 .mdf file to 2008 .mdf file ?
As I do not have access to SQL Server 2005 at all .
Best practice is to backup the database using SQL Server Management Studio with SQL Server 2005, and then restore it on SQL Server 2008.
But you can simply attach the SQL Server 2005 .MDF file to SQL Server 2008. SQL Server will convert it for you - it is able to read data files from older versions of SQL Server.
I would suggest attaching to SQL Server 2008, performing an SQL Server backup, then restoring it back to SQL Server 2008. This will cause the database to be recreated, and will alert you to any data issues.
Cheers,
Peter
When you restore database backup(2005) to SQL Server 2008 , SQL Server restore your backup and update it's to new version. But SQL Server don't change compatible level of your database. you can change compatible level of your database by following query.
ALTER DATABASE test SET COMPATIBILITY_LEVEL=100;

Moving database from SQL Server 2008 to SQL Server 2005

I want to move my my database of a SQL Server 2008 to a SQL Server 2005 Express on another machine. Is this possible? How should I do this?
There is no "built-in" way to move a database from a newer SQL Server version to an older version.
The only way that I know if is to use SQL Server 2008's "Generate Script" wizard to script your whole database (tables and data) and execute these scripts on the SQL Server 2005 to insert the data there.
(Moving a database from a older SQL Server version to an newer version would be easier - just take a backup and restore, SQL Server automatically converts it to the new version)

Resources