?
Solved

Move SQL Server Express To New Drive

Posted on 2012-04-05
2
Medium Priority
?
282 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 1200 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 800 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Resolve DNS query failed errors for Exchange
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create a User 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 >> Mailb…
In this video we show how to create an Accepted Domain 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 >> Ac…

777 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