Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Reindexing

Author  Topic 

chetan06
Starting Member

11 Posts

Posted - 2009-12-20 : 08:11:15
In the Reindexing operation, database log file is used.
But instead of this, can we have tempdb to be used. So that db size does not grow due to reindexing operation.


Cjain

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-12-20 : 11:06:06
You can use the SORT_IN_TEMPB option of ALTER INDEX, but the transaction log will still be used in the user database.

You can try my custom script which gives you the SORT_IN_TEMPB option: http://weblogs.sqlteam.com/tarad/archive/2009/11/03/DefragmentingRebuilding-Indexes-in-SQL-Server-2005-and-2008Again.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -