How to Move TempDB to Another Drive & Folder
19 Comments
Every time I have to do this, I Google for a script. I might as well write my own and put it here so at least I find myself in the Google results: Transact-SQL SELECT 'ALTER DATABASE tempdb MODIFY FILE (NAME = [' + f.name + '],' + ' FILENAME = ''Z:\MSSQL\DATA\' + f.name +…