Solved

Backup SQL Server 2008 database to 2005 Using Csharp

Posted on 2011-02-17
8
295 Views
Last Modified: 2012-05-11
Hello,
I was trying to backup sql server 2008 to sql server 2005 and get the .bak file and put it somewhere on the server, but It is not working for me.
Please notice the sql server 2008 is on one server and the 2005 is on a different one, and I'm trying to extract the code from the 2005 server.
Please help !!!
0
Comment
Question by:ankouny
  • 4
  • 4
8 Comments
 
LVL 16

Accepted Solution

by:
EvilPostIt earned 250 total points
ID: 34916210
You cannot restore a backup that is from a newer version of SQL. It just wont work.
0
 

Author Comment

by:ankouny
ID: 34916370
But it works if use the wizard to export the database from 2008 to 2005 or 2000
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 34916395
Yes thats an export wizard not a backup restore. With the wizard it is effectivly creating the db schema and then streaming the data in which you could techincally do to oracle. But still oracle would not be able to restore a SQL Server backup.
0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

Author Comment

by:ankouny
ID: 34916445
Ok then How can I export database from 2008 to 2005 or 2000 programmatically using csharp or vb.net using the same process the wizard does.
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 34916469
With the wizard you can get it to create an SSIS package to transfer the data, with regards to the schema, this is pretty simple if you have visual studio 2010 as you can just do a schema compare with an empty database and use that script!
0
 

Author Comment

by:ankouny
ID: 34916530
I cant do a schema because the program is going to be like this:
the user will choose the database that he will export it and each database is different from the other.
I don't know if there is a way I can do that Or I can run a script inside the application to create a new database in the sql server 2005 and insert into it the data.
0
 
LVL 16

Expert Comment

by:EvilPostIt
ID: 34916595
So your trying to write a program to just copy a database. That sounds like it going to be tricky.
0
 

Author Comment

by:ankouny
ID: 34916629
yea to copy a sql server 2008 database to a sql server 2005 database on a different server.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to leverage one TLS certificate to encrypt Microsoft SQL traffic and Remote Desktop Services, versus creating multiple tickets for the same server.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question