Solved

Backup SQL Server 2008 database to 2005 Using Csharp

Posted on 2011-02-17
8
297 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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