Quantcast
Channel: SQLServerCentral » SQL Server 2016 » SQL Server 2016 - Administration » Latest topics
Viewing all articles
Browse latest Browse all 2648

tempdb shrinking and emptying datafiles

$
0
0
Hi I found some script online to emptyfile and shrink data files for tempdb.

We have 10 data files and we dont need 10 files now.

USE tempdb
GO
DBCC SHRINKFILE (tempdb3, EMPTYFILE); -- to empty " data file
GO


A

Viewing all articles
Browse latest Browse all 2648

Trending Articles