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에서 열기 →

관련 항목