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

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,

Who is Participating?
243johnmConnect With a Mentor Author Commented:
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!

Robby SwartenbroekxMSP engineerCommented:
243johnmAuthor Commented:
Thanks Robby. 10 GB is the maximum DB size: the docs should go into Filestream and not count against the DB size...

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Robby SwartenbroekxConnect With a Mentor MSP engineerCommented:
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).
Vitor MontalvãoConnect With a Mentor MSSQL Senior EngineerCommented:
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.
Scott PletcherConnect With a Mentor Senior DBACommented:
>>  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.
243johnmAuthor Commented:
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!

Scott PletcherSenior DBACommented:

Thanks for the follow-up info, very interesting.
243johnmAuthor Commented:
Took several days for someone with knowledge of the app to help me out ... but this solution worked!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.