Solved

Backup SQL Server 2008 database to 2005 Using Csharp

Posted on 2011-02-17
8
294 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
 

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
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.

 
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# application error "Parameter Is Not Valid". 3 75
Data is not showing from images 15 36
Run time Error 4 34
SQL Server stored proc 2 10
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

943 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now