Solved

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

Posted on 2014-12-22
9
218 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
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 7

Expert Comment

by:Robby Swartenbroekx
ID: 40514143
0
 
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 166 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
 
LVL 45

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 167 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 167 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 69

Expert Comment

by:ScottPletcher
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
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…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

16 Experts available now in Live!

Get 1:1 Help Now