Link to home
Start Free TrialLog in
Avatar of Kevin
KevinFlag for United States of America

asked on

How to move tempdb and templog to another drive

Good Afternoon,

I am running SQL Server 2008 R2, at the moment I have my "templog.ldf" and "tempdb.mdf" being saved on the C drive.

I want to follow best practice and have these stored on a separate drive.

I have a separate drive ready for them, but don't know how to tell SQL server how to use the other drive instead of the C.

Kindly advise how I am able to do this.

Regards,
N
ASKER CERTIFIED SOLUTION
Avatar of Scott Pletcher
Scott Pletcher
Flag of United States of America 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
Avatar of Kevin

ASKER

Thanks.

Just to confirm "FILENAME" (is the "tempdb.mdf" and "templog.ldf") or is it just the word "FILENAME"??

Kindly advise.

Regards,
N
Avatar of Kevin

ASKER

Please disregard i see FILENAME is a parameter.

I will apply tonight and advise of any issues.

Regards,
N
Avatar of Kevin

ASKER

Thanks again.