Analyst ReportOpen iT Named a Leader in the 2025 QKS SPARK Matrix™
See why we’re a Leader.
Download Full Report

KNOWLEDGE BASE

How can we help?

Introduction #

SQL Server by default uses all available resources within the machine. It can also potentially stop other system processes.

Resolution #

Check whether the CPU affinity is already limited within SSMS of the sql server by running a query:

EXEC sp_configure 'show advanced options', 1;
RECONFIGURE;
EXEC sp_configure 'affinity mask';

If the result shows config_value = 0, it means it will use all available CPU within the machine

To limit this, refer to the table below:

No. of CPUsCPU COREAffinity Mask Value
1CPU 11
1CPU 22
1CPU 34
1CPU 48
2CPU 1, 23
2CPU 1, 35
2CPU 1, 49
2CPU 2, 36
2CPU 2, 410
2CPU 3, 412
3CPU 1, 2, 37
3CPU 1, 2, 411
3CPU 1, 3, 413
3CPU 2, 3, 414
4CPU 1, 2, 3, 415

Notes:

A “CPU” can have multiple logical processors. Hence, some CPUs have 4 “CPU Core” and 8 “Logical Processors”. In this case, “No. of CPUs” directly correlates to the total amount of Logical Processors of the machine.

If you only want to use the first 2 CPUs (CPU 1, 2), run the query below: 

EXEC sp_configure 'affinity mask', 3;
RECONFIGURE;

If you only want to use the first 3 CPUs (CPU 1, 2, 3), run the query below:

EXEC sp_configure 'affinity mask', 7;
RECONFIGURE;

To reset this to 0 (Which will use all of the available resources), just run the query below:

EXEC sp_configure 'affinity mask', 0;
RECONFIGURE;

Overview #

No need to restart SQL Service, RECONFIGURE automatically applies the changes

This will make ETL run a bit longer depending on data

ETL run still largely depends on…

  • System specs (SQL is CPU-heavy by default)
  • Other processes in the machine
  • Efficiency of how ETL transforms and loads the data

Other Categories

Auxiliary

Supplementary resources, utilities, or tools that enhance core functionality and support various operational needs.
Explore More

Demo Videos

Short, informative videos showcasing product features, workflows, and best practices through real-world demonstrations.
Explore More

Interface Guides

Step-by-step instructions and visuals explaining how to navigate and use the application’s user interface effectively.
Explore More

License Managers

Documentation and tools for managing, monitoring, and maintaining software licenses across different systems or products.
Explore More

Upgrade

Instructions, best practices, and technical guidance for updating Open iT components to newer versions, ensuring a smooth, secure, and efficient transition with minimal downtime.
Explore More

Looking for More Resources?

Explore additional content through our Customer Portal or Documentation page for anything not covered here.

Scroll to Top

Let's talk

We’ll show you how your business can benefit from Open iT solutions.
Please note:
By submitting this form you are agreeing to receive additional communications from Open iT. Your information will be processed in accordance with our Privacy Notice.

Let's talk

We’ll show you how your business can benefit from Open iT solutions.
Please note:
By submitting this form you are agreeing to receive additional communications from Open iT. Your information will be processed in accordance with our Privacy Notice.

Let's talk

We’ll show you how your business can benefit from Open iT solutions.
Please note:
By submitting this form you are agreeing to receive additional communications from Open iT. Your information will be processed in accordance with our Privacy Notice.