I used SQL Server Migration Assistant to migrate a MySQL database to SQL Server 2008. I am looking for a way to move the migrated SQL Server tables to SQL Server CE, but there is no such option in the Migration Assistant. How to copy or move the migrated tables to SQL Server CE?
You can use my command line utiltiy Export2sqlce, as described here: http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html
Related
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.
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.
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)
How to copy database and all tables pks triggers etc as well as data from SQL Server Express to SQL Server 2005 ?
Using Backup/Restore
Backup the database on SQL Server Express
Restore the database to SQL Server 2005
Using Detach/Attach
Detach the database from SQL Server Express
Attach the database to SQL Server 2005
Note
This assumes the Express Edition is 2005 as well. Downgrading from 2008 to 2005 can be problematic.
Why do you need to copy anything?? Just detach the database (MDF + LDF) from your SQL Server Express, copy the files to the full server, and re-attach the database - and you're done!
You could create an Database Backup, or Drop the Database as Query.
Is there any way of copying a database from oracle to sqlserver 2005? Thanks
You can migrate from Oracle to SQL Server with Microsoft's SQL Server Migration Assistant. It is available both to SQL Server 2005 and 2008.
If you have lots of (complicated) stored procedures and such, the migration might get a bit tedious. I have only experience with databases with simple procedures and could just rewrite them and do the data copy to empty tables in SQL Server with the import functionality using Oracle connector (usable from SQL Server if you have installed Oracle client tools to the SQL Server machine). This way I didn't even need to use the Migration Assistant tool.