---What are the contents of your maintenance plan? Does it rebuild indexes base on a fragmentation threshold.
I'm using the default setting for the rebuild index task which generates the script below:
ALTER INDEX [pk_index] ON [dbo].[tablename] REBUILD PARTITION = ALL WITH ( PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, ONLINE = OFF, SORT_IN_TEMPDB = OFF )
----Do you have lots of free space in your databases? In terms of the object, what's the way that it's structured? Is the row size significant compare to page size? Fill factor? Can you give the DDL and commands you are running.
The database is about 1.9 GB and it has about 25% free space of the mdf file. I think the row count is significatly bigger thatn the page count. The fill factor is the default.
objectname objectid indexid partitionnum frag pagecount RowCount
pricevalue 832955731 1 1 52.0331600907694 109288 3977981
--Got a shrink operation running, automatic or manual?
No I don't have a shrink operation running.
Thank you for all your replies. I'll be reviewing http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html to hopefully find out more and learn more about rebuilding indexing.