Solved

Move SQL Server Express To New Drive

Posted on 2012-04-05
2
281 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In this video we show how to create a Contact 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 >> Contact ta…

726 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