can someone confirm process

I need to move system db's and application db's from the c drive to other partitions.
will the below outlined processes work for both sys db's and application db's
thanks a ton

http://blog.sqlauthority.com/2012/10/28/sql-server-move-database-files-mdf-and-ldf-to-another-location/
jamesmetcalf74Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Deepak ChauhanSQL Server DBACommented:
No different process for system DB.

First check the location of files

SELECT name, physical_name AS CurrentLocation, state_desc
FROM sys.master_files
WHERE database_id = DB_ID(N'<database_name>');

Then
here logical_name = name in above command.
you can copy the physical file name from the above command to put into the <OS_file_name> in below command.

ALTER DATABASE <database_name> MODIFY FILE( NAME = logical_name , FILENAME = '<new_path\os_file_name>'

for example you are moving msdb from c drive to D:\data drive.

in this case script will be

data file:

ALTER DATABASE MSDB MODIFY FILE( NAME = MSDBData, FILENAME = 'D:\Data\MSDBDATA.mdf'

Log file:
ALTER DATABASE MSDB MODIFY FILE( NAME = MSDBlog, FILENAME = 'D:\Data\MSDBLog.ldf'


repeat the same process for all databases which you want to move except MASTER database.

for Master database you have to change the startup parameter in sql server configuration manager.

-d 'new path'
-l  'new path'

now stop the service and move the files from C drive to another drive and start the service.

this is the link for help.
https://msdn.microsoft.com/en-us/library/ms345408(v=sql.110).aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.