You probably donβt have enough data in the index to deserve defragmentation. After you get a couple of thousand lines, regenerators and reorganis will get rid of fragmentation.
Until the number of index pages reaches 100 or so, fragmentation will not affect performance.
You will also want to check that your query is covered by the index and that the index is being used.
Run the request from the management studio (you can capture the request using the sql profiler or Activity Activity, if it is dynamic) and click "Enable the actual execution plan". This will tell you which index is being used, and if the query is included.
brian
source share