Solved

Move SQL Server Express To New Drive

Posted on 2012-04-05
2
275 Views
Last Modified: 2012-04-09
I am running SQL Server 2008 Express edition.  It got installed on my C drive, which is almost full with the endless MS updates.  I want to install Visual Studio so I can look at the DBs and back them up, etc.

How would I move the DBs (and I guess, the software) to a new drive and still keep everything functioning?  Or is there a way?
0
Comment
Question by:dougp23
2 Comments
 
LVL 39

Accepted Solution

by:
lcohan earned 300 total points
Comment Utility
I don't think you need to move the "software" as well but just the user databases and eventualy cleanup system dbs like MSDB. Please check db properties and see the size for each db to decide wich one(s) will give you the most free space. You can do that by DETACH/ATTACH option and plese see link below but I suggest do COPY not MOVE (CUT/PASTE) and later on after the ATTACH from new location was OK delete old phisycal files from C:

http://support.microsoft.com/kb/224071

For cleaning up msdb please see link below:

http://solihinho.wordpress.com/2008/07/19/cleanup-msdb/
http://social.msdn.microsoft.com/forums/en-US/sqldatabaseengine/thread/d81fe528-5ce5-4d31-b758-01e716bd0ec8/
0
 
LVL 75

Assisted Solution

by:Anthony Perkins
Anthony Perkins earned 200 total points
Comment Utility
A better approach than detach/attach for the user databases is to:
1. Set the database offline.
2. Move or copy the data files.
3. ALTER the database to point to the new path.
4. Set the database online.
0

Featured Post

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…

772 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

10 Experts available now in Live!

Get 1:1 Help Now