You are here: Re: How to drop one of the tempdb files « MsSQL Server « IT news, forums, messages
Re: How to drop one of the tempdb files

Posted by Erland Sommarskog on 11/23/05 00:58

New MSSQL DBA (boscong88@gmail.com) writes:
> Hi all, I have a tempdb that consists of 8 datafiles, tempdb_data_1 to
> tempdb_data_8, each is 8GB. Now how can I drop 7 of them and leave
> only tempdb_data_1? Can this be done? Thanks a lot.

I have not tried it, but my naive guess is that you would do as for
any other database. That is first DBCC SHRINKFILE with EMPTYFILE, and
then ALTER DATABASE.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация