Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

Index Rebuild on Standard Edition with explanation?

$
0
0

We have one big database in the simple recovery mode and a largest table in it has two indexes: clustered and non-clustered. As we are using MS SQL Server 2008R2 Standard Edition no partitioning or ONLINE index rebuild is available.So we need as muchdisk spaceas both indexes currently occupy. If we usesp_spaceused <table_name> we get index_size in total (in our case 190 GB). I found dozen ofqueries returning the size of each index and I am not sure which one is accurate. We need the actualvalueto ensure sufficientdisk space for rebuild. Can someone explain this and provide the accurate queries?

1. How much space do we need to rebuild both indexes at once. Are they always rebuild one by one  or at once like one transaction and we need total space for all indexes - I am asking this because we want to create maintenance job and when using different scripts I am not sure how much space we need: total or ?

2. If we want to rebuild one by one how much space do we need - some accurate script?

3. If we are rebuilding index what is default fill factor or we can use:

ALTER INDEX <Index_Name> ON TIMELINE <Table_Name>
REBUILD WITH (FILLFACTOR = 80)

4. While rebuilding is executing data file is growing and if additional space is needed does it autogrowth if this option is available or it is using intial allocated database space?


ApolloDB







Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>