Solved

forgot to change system databases path

Posted on 2009-12-21
5
211 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
  • 3
  • 2
5 Comments
 
LVL 26

Expert Comment

by:tigin44
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
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…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

771 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now