DBAtlas · データベース運用アトラス

一般的な sp_configure 設定と RECONFIGURE

SQL Server構成

コマンド

EXEC sys.sp_configure 'show advanced options', 1;
RECONFIGURE;

-- Example: cost threshold for parallelism and MAXDOP:
EXEC sys.sp_configure 'cost threshold for parallelism', 50;
EXEC sys.sp_configure 'max degree of parallelism', 4;
RECONFIGURE;

-- Show all configured/running values:
SELECT name, value AS configured, value_in_use AS running, is_dynamic, is_advanced
FROM   sys.configurations
ORDER BY name;

概要

サーバーレベルの構成値を設定する。RECONFIGURE で実行値に適用する。

使用する場面

MAXDOP、並列処理のしきい値、optimize for ad hoc workloads などのサーバー設定を変更する場合。

注意

is_dynamic = 0 の設定は SQL Server の再起動が必要。RECONFIGURE WITH OVERRIDE は一部の設定で検証を省略するため、慎重に使用する。変更前に value_in_use を記録しておく。

DBAtlas で開く →

関連項目