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 7064271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:48:50+00:00 2026-05-28T04:48:50+00:00

To start off – I have 2 separate websites and a database (IIS 7.5,

  • 0

To start off – I have 2 separate websites and a database (IIS 7.5, ASP.NET and SQL Server 2008, using Linq-To-SQL for database access).

I have a separate administrative website that sometimes, during usage needs to trigger long running operations (more than 10 seconds) on database. The problem is that those operations cause sqlserver process to hit 100% CPU and then other, main customer website, can’t access database promptly – there are some delays in accessing database.

I am OK with those administrative operations lasting 2x or 4x or nx times longer since they are lower priority.

I’ve tried using CPU Limit setting on AppPool in IIS, but that doesn’t help, as w3wp.exe process never uses much of CPU… rather it’s sqlservr.exe. Thanks in advance for your suggestions!

  • 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-28T04:48:50+00:00Added an answer on May 28, 2026 at 4:48 am

    Sounds like you want to look into Resource Governor which is built into SQL server as of SQL 2008. BOL link should get you started.

    http://msdn.microsoft.com/en-us/library/bb933866(v=SQL.100).aspx

    Essentially, you can throttle CPU and memory usage for the resource pools and workloads you define. This throttling will only kick in when the server is under load. Be aware that you cannot control disk IO utilization. If the process in your admin database is IO bound and your other DBs share drives you will inevitably still see performance issues and moving databases to separate spindles or query tuning will be necessary.

    Example of the classifier function that will ensure the user you define is throttled by the desired resource pool based on workload group:

    /* Classifier function */
    CREATE FUNCTION dbo.rgov_classifier_db ()
    RETURNS sysname
    WITH SCHEMABINDING
    AS
    BEGIN
        DECLARE @rgWorkloadGrp sysname
        IF SUSER_SNAME() = 'adminWebsiteDB'
            SET @rgWorkloadGrp = 'workloadGroupName'
        ELSE
            SET @rgWorkloadGrp = 'defaultWorkloadGroupName'
        RETURN @rgWorkloadGrp
    END;
    GO
    /* Register the function with Resource Governor and then start Resource Governor. */
    ALTER RESOURCE GOVERNOR
        WITH (CLASSIFIER_FUNCTION = dbo.rgov_classifier_db);
    GO
    ALTER RESOURCE GOVERNOR RECONFIGURE;
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

To start off, I'm using Asp.Net MVC 4, and I've modified my solution to
First off, let me start off that I am not a .net developer. The
Ok so to start off, I'm not using any sort of web service. Right
To start off, I'm not that great with database strategies, so I don't know
To start off, what I have is a simple Winforms app, with just a
I'll start off and say I am not using the MVVM pattern for my
if i start off on a Detail page: http:\\www.mysite.com\App\Detail i have a controller action
To start off, the method that I'm using for automating individual elements of ComboBox
Let me start off by describing my situation. I have a main view that
I'll start off by saying I'm a noob with all of this, I have

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.