Solved

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

Posted on 2010-08-19
2
404 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Naughty Me. While I was changing the database name from DB1 to DB_PROD1 (yep it's not real database name ^v^), I changed the database name and notified my application fellows that I did it. They turn on the application, and everything is working. A …
In this article I will describe the Detach & Attach method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

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