Solved

forgot to change system databases path

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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Let's review the features of new SQL Server 2012 (Denali CTP3). It listed as below: PERCENT_RANK(): PERCENT_RANK() function will returns the percentage value of rank of the values among its group. PERCENT_RANK() function value always in be…
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.
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 extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.

863 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

21 Experts available now in Live!

Get 1:1 Help Now