Conditionally Updating Statistics

SQL Server’s query optimization engine uses statistics on indexes to determine the most efficient execution plans. By default, SQL Server automatically updates statistics, but sometimes the automatic processes don’t update them soon enough, so there are multiple ways to force them to update to help keep your queries running as efficiently as possible. The main…