January 30, 2012 at 4:55 am
Is there any query to get the tables that are to be optimizated (defrag, reindex, update stats). Thanks in advance
Regards
Karthikeyan.T
January 30, 2012 at 5:06 am
For fragmentation - sys.dm_db_index_physical_stats
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 30, 2012 at 5:35 am
sp_createstats
http://msdn.microsoft.com/en-us/library/ms186834.aspx
DBCC SHOW_STATISTICS ( table_or_indexed_view_name , target )
http://msdn.microsoft.com/en-us/library/ms174384.aspx
UPDATE STATISTICS table_or_indexed_view_name
January 30, 2012 at 6:46 am
If you want to optimize indexes and stats this is a good place to start looking:
http://ola.hallengren.com/sql-server-index-and-statistics-maintenance.html
-- Gianluca Sartori
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply