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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:57:58+00:00 2026-05-27T00:57:58+00:00

I ran SQL Server Profiler trace (duration on batch complete) and found one really

  • 0

I ran SQL Server Profiler trace (duration on batch complete) and found one really long running query. These are the utilization statistics for the top five longest running queries:

Count   Duration    CPU     Reads   Writes
1       1237757030  608     47979   10
14695   358668961   355928  4818709 315
3501    48323496    43705   625474  17 
75883   46373094    45250   8526977 127
34      35394031    10200   2461621 0

The first one runs nearly 3 times longer than the second, even though the second has a much larger cumulative CPU time and number of reads than the first one. How could this be, or how can I find out more about what is happening here?

  • 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-27T00:57:59+00:00Added an answer on May 27, 2026 at 12:57 am

    Usually this is caused by some kind resource contention. In other words, your query is idle while waiting for locks to be released (blocking), data to be read from disk, waiting for threads to complete their work etc.

    It’s a deep subject, but I would recommend starting by looking at your wait stats.

    To get an idea of the cumulitive wait stats, look at sys.dm_os_wait_stats. From BOL:

    “Specific types of wait times during query execution can indicate
    bottlenecks or stall points within the query. Similarly, high wait
    times, or wait counts server wide can indicate bottlenecks or hot
    spots in interaction query interactions within the server instance.”

    You can also run your query and attempt to identify issues with blocking. Here’s a good article on the subject.

    http://www.simple-talk.com/sql/sql-tools/how-to-identify-blocking-problems-with-sql-profiler/

    These are a few areas to look but, honestly there are so many variables that, short of having access to your server, it is incredibly difficult to anything beyond offer guesses and suggestions on where you could look.

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

Sidebar

Related Questions

I ran this query on my SQL Server database: begin transaction; insert into [db].[a].[Table1]
I'm running SQL Server 2008 R2 developer edition. I've ran the following: exec sp_fulltext_database
I ran these quires in my SQL server select cast('<Answers> <AnswerDescription> ϱπΩ÷√νƞµΔϒᵨλθ→%° </AnswerDescription> </Answers>'
I've ran some ALTER scripts on the database [SQL Server Server 2005], and overwrote
I just ran into a SQL query with about 5 different columns in the
I ran InstallSqlState.sql from .Net Framework 4.0 directory in Sql Server. Then I configured
I just ran an update edition to update from SQL Server 2008 R2 Express
I recently ran into major problems inserting records into a SQL Server backend from
I ran into something that seems odd. SQL Server appears to be rounding some
Here's the query that is being executed on SQL Server 2008: SELECT "dbo"."tblMainData"."recID" FROM

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.