Limit CPU utilization

HI,

Is there any parameter on SQLSERVER to limit the utilization of the CPU.

I made a storeprocedure that has several Loops and when i execute it the processor stay's on 100 % for several minutes and this is blocking the server to the other applications. I would like to set the server so that SQLSERVER could not make use of 100 % of the CPU. Is possible to set a parameter on the SERVER or in the storeprocedure so that the CPU utilization would never be greater than x%

Thanks a lot

Jose Rocco




Answer this question

Limit CPU utilization

  • myDisplayName

    No. There is no resource governing feature in SQL Server that will allow you to control allocation of resources to server-side processes or TSQL commands etc. So you will have to simplify the code or modify it in such a way that you reduce the CPU requirement. If you are doing lot of procedural code then try to change them to set-based operations. You can also move some of the computations to the client side if required.

  • Limit CPU utilization