Load SQL server backup file into DB2 - sql-server

Is it possible to restore/import a SQL Server 2008 database backup file (.bak) into DB2 10.1?
Thanks

Not possible; completely different format.
Restore to another SQL Server instance then migrate. IBM has resources for that. http://www-01.ibm.com/software/data/db2/migration/mtk/

Related

Database transfer between SQL Server 2000 and SQL Server 2008

I'm trying to help a client who's hosting company has decided to shutdown their hosting services and in that process I need to migrate an old ASP.Net site (DNN i think) to a new hosting company.
The old hosting company is running SQL Server 2000 and the new hosting company I'm attempting to copy it to has a 2008 version.
SQL Server Management Studio can connect to the old database ok but the Import/Export Data tool doesn't want to connect to this old system.
Is there anyway to easily transfer the database across?
Any tool you can recommend to backup a SQL 2000 db and restore it to a 2008 version or a migration tool that can converse between those two?
You should be able to just take a SQL Server database backup (using the built in backup features) from the SQL Server 2000 database, and restore it into SQL server 2008
http://msdn.microsoft.com/en-us/library/ms186858(v=sql.100).aspx
My suggestion to you is
Get the host to shut down the SQL Server
Get the host to provide you with the files or the backups
Install your own SQL Server 2000 and then run the migration. Or just plain estore the backup in SQL2008
You can also try to script database (schema + data): http://j.mp/NRb2EE and execute this script on new server. If database is large it can be huge script.
And remember to pay attention to the option Types of data to script – select option ‘Schema and data’.

Convert .sdf to .bak

I'm trying to publish a webproject MVC3 .NET with binero.se. The problem is that my database file is .sdf. And binero wants a .bak file.
Does anyone know how to solve this problem?
.sdf is the file format for SQL Server Compact Edition and that's quite a different beast from "real" SQL Server. .bak is the database backup format for a full-blown SQL Server.
The way to get from .sdf to .bak would be:
create a temporary database in a "full" SQL Server (Express, Standard, Enterprise) with the name of the .sdf file
using a tool like SQL Server Compacst data and schema scripting, export your table structure and data from the SQL Server CE file into "full" SQL Server
once you've created all tables and other DB objects and inserted all your data into the "full" SQL Server database, create a backup of that database to get your .bak file

Error in restoring .bak file to SQL Server 2008

I am trying to restore a backup file to SQL Server 2008. I am getting the following message.
System.Data.SqlClient.SqlError: The database was backed up on a server
running version 10.50.1600. That version is incompatible with this
server, which is running version 10.00.1600. Either restore the
database on a server that supports the backup, or use a backup that is
compatible with this server. (Microsoft.SqlServer.Smo)
I need to transfer all data from the SQL server 2008 R2 backup file to SQL server 2008 database.
Can you please suggest me how to restore the .bak file.
Although SQL 2008 and SQL2008 R2 have similar(ish) names, a backup from SQL 2008R2 (where your .bak file was created) cannot be restored on a SQL 2008 instance (where you are trying to restore it.)
You could create a new backup using a third party tool like Redgate SQLBackup, or you could use the import/export wizard in SSMS to transfer the data, but R2 backups are not backward compatible unfortunately.

SQL server - extract and run queries on 20GB data

I do have a BKS file which contains 15GB+ size. How do I extract the data and run queries on this? I was told that this is SQL Server data. Should I try to upload this to SQL Azure? Any ideas.
You must use any edition of SQL Server, restore database and run your queries.
SQL Express not able to work with such amount data - there is limitation on 4GB (ver2010).
download sql server 2008 express edition from microsoft (free), and restore the backup on your dev machine..
It was actually a BAK file. Just run the standard restore database and point to the bks file.

How to restore data from SQL Server 2005 in SQL Server 2000?

how can we get the restore in sql server 2000 of sql server 2005 data
You can't restore data from sql 2005 to 2000 only if you generate scripts with sql server 2000 compatibility. If you want create and restore backup can't do.
I recently found myself in a similar position on a client site. I came across an article on the MSDN SQL Server Forum (second response from top) with a detailed walk-through on this issue.
I ran into a few issues with scripting users & had to hack my way through it a little bit, but it was a great starting point for me.
I do not think this is possible. You can't go from 2005 to 2000, what you would have to do is install SQL 2005 Express then restore to that and you should be able to manage the backup from there.
If you only need the database structure you can generate scripts for the entire database.
Try this:
In the Properties window of the SQL 2005 Database you can set the compatibility level of that database to SQL 2000. Then perform the backup and then restore to SQL 2000.
If you don't want change the compatibilty level of your original database, just do a backup first and restore the database as a dummy in SQL 2005 and set that database's compatibility level.
alt text http://img411.imageshack.us/img411/8541/clipboard01lro.jpg
Use RedGate SQL Compare and RedGate SQL Data Compare to push the tables and data from SQL 2005 to SQL 2000.
You may be able to script the whole database from SQL 2000 compatibility mode, but getting the data requires something besides a backup and a restore. You could try bulk saving and bulk loading data, too...

Resources