Snapshot for different SQL Server Version - sql-server

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.

Related

Is SQL Server 2005 database compatible with 2008?

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.

SQL Server 2008 R2 migration to Azure

Because data can not be replicated directly from SQL Server 2008 R2 to Azure SQL Database I wonder if it is possible to replicate using replication from SQL Server 2008 R2 this way: SQL Server 2008 R2 replicates data to SQL Server 2012 or 2014 and then from there I replicate data to Azure SQL database.
What is the best fallback plan? Let's say we went to live and after 1 or 2 days we realized that we need go back. What is the best way to go back to old datacenter to SQL Server 2008 R2?
The database is approximately 20Gb. It is preferred to do migration in 1 step.
I doubt that SQL Server 2012 or 2014 database could be a subscriber at the same time and the publisher.
At this point of time, replication between on-premise SQL 2008 R2 Database and Azure SQL is not supported.
If you are asking about data migration, I suggest using Azure SQL Migration tool. You can download it from codeplex, choose appropriate version 2008 R2
take a look into this article. To summarize: you can do a direct SQL 2008 DB move to Azure if the DB adheres to the v12 DB schema.

Migrate SQL Server 2008 databases to 2016

We are processing to migrate SQL Server databases from 2008 to 2016.
We are searching now for expired function or utilities used in SQL Server 2008 and not available in SQL Server 2016 before migration.
Do you have reference for that?
Here are few features removed in SQL Server 2016 (from MSDN):
SQL Server 2016 is a 64-bit application. 32-bit installation is discontinued, though some elements run as 32-bit components
Compatibility level 90 is discontinued. For more information, see ALTER DATABASE Compatibility Level (Transact-SQL).
Though you are migrating from SQL Server 2008 directly to SQL Server 2016, you need to consider the removed features of SQL Server 2012 & SQL Server 2014 as well
Discontinued Database Engine Functionality in SQL Server 2014
Discontinued Database Engine Functionality in SQL Server 2012

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.

Can we restore backup from SQL Server 2008 R2 to SQL Server 2008 R2 Express Edition?

I need to restore backup taken from SQL Server 2008 R2 to SQL Server 2008 R2 Express edition. Is it possible ?
You can only restore backups to servers running the same or higher version. Normally you can restore backups on SQL Express that were made on servers running other editons (Standard, Enterprise, ...) as long as the database size is not greater than the max size supported by SQL Server Express (10GB on latest versions).
In your case, the backup was made on a server running SQL Server 2008 R2 (version 10.50) and you are trying to restore it to a server running SQL Server 2008 (version 10.00).
In SQL Server 2005 and later, some Enterprise Edition–only features make a database Enterprise Edition–only (i.e., it can’t be restored on a Standard Edition or lower SQL Server system) if the features are present in the database.

Resources