Solved

Move SQL Server Express To New Drive

Posted on 2012-04-05
2
280 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
[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
2 Comments
 
LVL 40

Accepted Solution

by:
lcohan earned 300 total points
ID: 37813897
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
ID: 37814859
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

Technology Partners: 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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Local Continuous Replication is a cost effective and quick way of backing up Exchange server data. The following article describes the steps required to configure Local Continuous Replication. Also, the article tells you how to restore from a backup…
In this video we show how to create a Shared Mailbox 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 Recipients >> Sha…
To show how to create a transport rule 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 Mail Flow >> Rules tab.:  To cr…

749 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