Link to home
Start Free TrialLog in
Avatar of sqlserverdba
sqlserverdba

asked on

forgot to change system databases path

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.


Avatar of tigin44
tigin44
Flag of Türkiye image

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
Avatar of sqlserverdba
sqlserverdba

ASKER

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?
ASKER CERTIFIED SOLUTION
Avatar of tigin44
tigin44
Flag of Türkiye image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial