Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Converting a 15 GB SQL Server 2005 Workgroup DB into SQL Server Express 2008 R2

Posted on 2014-12-22
9
Medium Priority
?
239 Views
Last Modified: 2014-12-31
I support an application that uses SQL Server Express 2008 R2 as the DB for the less expensive edition of the product.

A new client has an older version of the more expensive edition and purchased the less expensive edition when they bought their upgrade. They then asked me to help with the upgrade.

The previous DB is mostly docs and was stored in SQL Server 2005 Workgroup. The backup is 15 GB.

Is there any way to convert that backup into SQL Server Express 2008 R2? I tried to use the apps Restore function and it didn’t work…

Thanks very much,

John
0
Comment
Question by:243johnm
[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
  • 2
  • 2
  • +1
9 Comments
 
LVL 1

Author Comment

by:243johnm
ID: 40514150
Thanks Robby. 10 GB is the maximum DB size: the docs should go into Filestream and not count against the DB size...

John
0
 
LVL 7

Assisted Solution

by:Robby Swartenbroekx
Robby Swartenbroekx earned 664 total points
ID: 40514157
ah, ok.
Then you need to remove the table with the docs in the SQL 2005 standaard instance and then you can detach the database and attach it to 2008 express (first do a shrink, so it drops below the 10Gb limit).
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 52

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 668 total points
ID: 40514612
First of all you need to migrate all data from MSSQL 2005 to MSSQL 2008R2 Express leaving the doc column, so you can have all data without passing the 10GB limit.
Then after you moved the documents to the filestream folder you need to update the table to link the records to the respective documents.
If you don't have SSIS installed then you need to do this by creating a linked server and manually scripting the procedures.
0
 
LVL 70

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 668 total points
ID: 40518911
>>  I tried to use the apps Restore function and it didn’t work… <<

That's very vague.  What error message?  Did you use change the file paths to match the new server?  Did you make sure the FILESTREAM path was available exactly as it was on the old server?  I don't know if even that will work but it should at least have a chance of working.

When dealing with multiple tables, you have easy ways around the 10GB limit.  It's much more difficult to get around if a single table is near or over 10GB by itself.
0
 
LVL 1

Author Comment

by:243johnm
ID: 40519075
Thanks all.

Robby & Victor: those solutions are way beyond my knowledge of SQL!
Scott: this is the message that the apps restore function returned: "Problems encountered when trying to restore SQL Database DB_Name". Looking in the logs, there was nothing helpful!

John
0
 
LVL 1

Accepted Solution

by:
243johnm earned 0 total points
ID: 40519089
I received some assistance a couple of days ago from someone who had the same problem with the app we both support. His solution:

Install a trial of SQL Server 2008 with an instance name other than one used already and with Filestream enabled.
Restore the SQL backup into SQL Server 2008.
Run a script he gave me that removed the docs from the docs table, put them into Filestream and then deleted the docs table.
SQL Backup of that DB
Restore into SQL Server 2008 R2 Express.
Uninstall the trial.

His process worked: the 15+ GB SQL Server 2005 DB turned into a 120 MB SQL Server 2008 R2 Express DB with 15 GB of docs in Filestream!

Thanks again everyone who tried to help me with this issue!

John
0
 
LVL 70

Expert Comment

by:Scott Pletcher
ID: 40519091
Awesome!

Thanks for the follow-up info, very interesting.
0
 
LVL 1

Author Closing Comment

by:243johnm
ID: 40525163
Took several days for someone with knowledge of the app to help me out ... but this solution worked!
0

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
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…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…

722 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