備忘録 実行計画の選定におけるサンプル数を変更する (SQL Server)
SQL Server の統計情報から実行計画を選定する際に使用するサンプル数を変更する。
How to change the sampling rate to get the execution plan from the statistics data on SQL Server.
[OS version]
- Windows Server 2012 R2
[Middleware version]
- SQL Server 2014
[統計情報 サンプル数の変更]
- update statistics [TABLE_NAME] [STATISTICS_NAME] with sample [NUMBER] percent
- update statistics [TABLE_NAME] [STATISTICS_NAME] with Fullscan
コメントを残す