sql server statistics

SQL SERVER – Enable Automatic Statistic Update on Database « Journey to SQL Authority with Pinal Dave

USE AdventureWorks;
GO
/* Enable Stats and Auto Update */
— Enable Auto Create of Statistics
ALTER DATABASE AdventureWorks
SET AUTO_CREATE_STATISTICS ON;
— Enable Auto Update of Statistics
ALTER DATABASE AdventureWorks
SET AUTO_UPDATE_STATISTICS ON;
GO
— Update Statistics for whole database
EXEC sp_updatestats
GO

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *

What is 3 + 11 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)