Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3336582
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T00:09:10+00:00 2026-05-18T00:09:10+00:00

Is it possible to put a ceiling on the amount of CPU a certain

  • 0

Is it possible to put a ceiling on the amount of CPU a certain database or preferably a certain user, or group of users can use?

I have one app on a server that is maxing out the CPU due to complex queries that are being created at runtime. Until the specific module in that application is redeveloped (which could take months) i need to find a way to stop that specific application from choking SQL Server and reducing availability for other apps on the same server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T00:09:10+00:00Added an answer on May 18, 2026 at 12:09 am

    Do you look at Resource Governor? It makes possible to devde the resources between the group of users.

    This is only example and for full information you need to look at documentation:

    • Create the pools:

      create resource pool Pool1
       with (
         min_cpu_percent = 30
        , max_cpu_percent = 100
      )
      
      
      create resource pool Pool2
       with (
        min_cpu_percent = 50
       , max_cpu_percent = 70
      )
      
      
      create resource pool Pool3
       with (
       min_cpu_percent = 5
       , max_cpu_percent = 100  
      )
      
    • Create the workload groups and link them to pools:

      create workload group Group1
      using Pool1
      
      
      create workload group Group2
      using Pool2
      
      
      create workload group Group3
      using Pool3
      
    • Create the function which will be make decision which workload group will be used for current session:

      create function dbo.rg_class_simple() returns sysname
         with schemabinding 
       as begin
        declare
         @grp_name as sysname
      
      
        if (suser_name() = 'user1')
           set @grp_name = 'Group1'
      
      
        else if (suser_name() = 'user2')
           set @grp_name = 'Group2'
      
      
        else if (suser_name() = 'user3')      
           set @grp_name = 'Group3'
      
      
      
       return @grp_name
      

      end

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to put the results from more than one query on more
Possible Duplicate: Put external library to the JAR? I have NetBeans 6.8 and I
Is it possible to put textbox control in custom toolbar in Excel. I have
How can i use RewriteMap directive in htaccess file? When i put it there
Is it possible to put multiple lines of text in one row of QTableWidget?
It is possible to put an array into a multi dim array? I have
Is is possible to put a constant where clause to a Linq to SQl
Based on a simple test I ran, I don't think it's possible to put
Is it possible to somehow mark a System.Array as immutable. When put behind a
Ok, this is possibly borderline-subjective, but I wonder where one would put a simple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.