I am trying to do some basic maintenance on a sql server 2005 database. It's fairly small (10gb in size, 50 tables or so).
I am first doing the following on all tables:
update statistics [table name] with fullscan
followed by reindexing all tables.
DBCC REINDEX ([table name], ...)
Is this correct? Is the sequence right? Do I need to do both or is one enough?