Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

MS SQL Express How to make the Database on separate disk or separate partition

Posted on 2010-08-19
2
Medium Priority
?
437 Views
Last Modified: 2012-05-10
Hello Everyone;

I'm not really good at MS SQL, but I would like to install it on the C Drive and have all the database saved on the D Drive.

is there any way we can do it ? I already have installed MS SQL on the C:\ dive so what i'm most interested in, is how to make the DB be saved completely on another disk partition (in our case D:\).

Thanks  
0
Comment
Question by:atigris
[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 16

Expert Comment

by:carsRST
ID: 33475248
When you create a database you should be able to specify where to store the database files.

You can also change the default location:

http://social.msdn.microsoft.com/forums/en-US/sqlsetupandupgrade/thread/c16a591f-86cc-4ce2-94ef-c8ad34054de8
0
 
LVL 2

Accepted Solution

by:
atigris earned 0 total points
ID: 33477171
This is how it is done;

1. you can change  SQL Server default DB and LOG location (this option is available on SQL Express 2005,2008)

 SQL Server Management Studio - right click on the Server - property - Database settings - Database default location

specify the new location of the DB and Log

2. You can do it at SQL DB level (This option is not available on SQL Express edition)  

http://www.psoft.net/HSdocumentation/sysadmin/mssqlchangehome.html

If you still want to do it on SQL Express edition (follow method 1# )

   1.  Create new MS SQL data location (E:\MSSQL\data\)
   2. Stop MS SQL server
   3. Move all databases to a new location (move *.mdf and *.ldf files)
   4. Create junction link between old and new MS SQL data folders. This can be done with Sysinternals Junction or any other utility of this kind
   5. Start MS SQL server

That is all there is to it.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Long way back, we had to take help from third party tools in order to encrypt and decrypt data.  Gradually Microsoft understood the need for this feature and started to implement it by building functionality into SQL Server. Finally, with SQL 2008, …
Data architecture is an important aspect in Software as a Service (SaaS) delivery model. This article is a study on the database of a single-tenant application that could be extended to support multiple tenants. The application is web-based develope…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

721 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