First - a little background - I'm a new DBA for my company and am trying to wrap my head around index fragmentation and some practices I've been reading about. This all started with about 30 location specific databases that are all queried overnight to gather information for reporting. Occasionally a couple of the db's show locks being caused by our script so I started looking at possible fixes. Though index fragmentation may not be the actual cause, it's something I've been looking through.
As I've been reading I've read information ranging from "re-index often" to "you don't need to worry about re-indexing." I've read that indexes fragmented < 30 % should be reorganized and >30 % completely rebuilt. I've read that reorganize can be done online and that rebuild could be either offline or online. I've also come across Ola Hallengren's site (http://ola.hallengren.com/
) that has a good script to analyze and decide whether to reorganize/rebuild an index automatically and the script will perform the appropriate action.
At this point, I'm only focused on the index fragmentation of 1 table and each index (with 1 exception) has fragmentation around 98%. The size and read/write frequency is database specific due to some locations are busier than others.
What I'm asking you guys is what other resources am I missing? Are my thoughts completely off? What other scripts/articles would you guys suggest going through to analyze my indexes and fragmentation?
Thank you all very much for taking the time to read through this, I appreciate it very much. My apologies if I haven't provided enough information in this post.