What is the "best" way to defragment a database? I suspect one of our databases is fragmented as it has been on autoshrink (yuck).
Anyways, I was thinking that I could defragment by making sure an clustered indexe exists on all the tables, then running index rebuild or defrag on the index (I don't know which, I need to look this up in bol again).
Does this sound reasonable? Or is there a better way?
Thanks
Anyways, I was thinking that I could defragment by making sure an clustered indexe exists on all the tables, then running index rebuild or defrag on the index (I don't know which, I need to look this up in bol again).
Does this sound reasonable? Or is there a better way?
Thanks