SQL Server Change TempDB File Location

Hi,

TempDB is one of the most important system databases of SQL Server.

There are many database operations in TempDB like GROUP BY, ORDER BY, UNION, online re-indexing, multiple active record sets, user-created temporary objects, internal temporary objects and version stores.

 

So if the tempdb is located on slow disk like sas or sata, these operations will be very slow.

If TempDB is located on fast disk like SSD or Flash, you will see extra SQL Server Performance.

You can change TempDB file location like following query.

 

USE master
GO
ALTER DATABASE tempdb 
MODIFY FILE (NAME = tempdev, FILENAME = 'E:\TEMP\tempdb.mdf')
GO

 

Do you want to learn Microsoft SQL Server DBA Tutorials for Beginners, then read the following articles.

https://ittutorial.org/sql-server-tutorials-microsoft-database-for-beginners/

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

One comment

  1. Thank you a lot for providing individuals with an extraordinarily marvellous chance to read in detail from this blog. It is usually so superb and stuffed with fun for me personally and my office acquaintances to visit your site at least thrice weekly to see the fresh secrets you have. And definitely, I am always fascinated with all the unbelievable suggestions served by you. Certain 3 points in this article are certainly the simplest we’ve ever had.

Leave a Reply

Your email address will not be published. Required fields are marked *