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


  

Mehmet Salih Deveci

I am Founder of 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 mehmetsalih.deveci@outlook.com.-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  mehmetsalih.deveci@outlook.com a mail atabilirsiniz.

One thought on “SQL Server Change TempDB File Location

  • May 16, 2019 at 8:57 pm
    Permalink

    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.

    Reply

Leave a Reply

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