Solved

forgot to change system databases path

Posted on 2009-12-21
5
245 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

749 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