Solved

forgot to change system databases path

Posted on 2009-12-21
5
252 Views
Last Modified: 2012-06-27
I forgot to change the path for system databases at the time of install. Is it possible to change the location of data files and log files of system datbases (master,model, msdb,tempdb). Currently they are in default location - program files.


0
Comment
Question by:sqlserverdba
[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
  • 3
  • 2
5 Comments
 
LVL 26

Expert Comment

by:tigin44
ID: 26095517
sure you can move the system databases..
here is a link explaining the process in detatil

http://msdn.microsoft.com/en-us/library/ms345408.aspx
0
 
LVL 1

Author Comment

by:sqlserverdba
ID: 26095570
I dont want to move the system databases. can i just change the path of the data files and log files of the system databases like into d drive or e drive?

From the link you gave, is it enough to use this
ALTER DATABASE model MODIFY FILE ( NAME = model , FILENAME = 'd:\data\model.mdf' )

can you please explain?
0
 
LVL 26

Accepted Solution

by:
tigin44 earned 500 total points
ID: 26095599
you can not  copy directly the system databases from one location to another location. You should follow the procedures defined in that article..
by issuing the above command you tell the server that the database files will be in the specified path... when you stop the server and copy the files to the new location the server will use the files from the new location. You cannot move the system dtabase files by using simple detach, copy and attach process...
0
 
LVL 1

Author Comment

by:sqlserverdba
ID: 26095978
im working on it. can you please tell me which system databases (data, log files) do i need to move. Is it enough to move just master (mdf,ldf) and tempdb(mdf,ldf) from c drive to e drive?

or should i move all of them for all the system databases
0
 
LVL 26

Assisted Solution

by:tigin44
tigin44 earned 500 total points
ID: 26099954
you should move all the system databases... my advise will be moving data, log and tempdb files to different locations if available
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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.
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

719 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