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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T12:30:41+00:00 2026-05-27T12:30:41+00:00

I am working on tuning a stored procedure. It is a huge stored proc

  • 0

I am working on tuning a stored procedure. It is a huge stored proc and joins tables that has about 6-7 million records.

My question is how do I determine the time spent in the components of the proc. The proc has 1 big select with many temp tables created on the fly (read sub-queries).

I tried using SET STATISTICS TIME ON, SET SHOWPLAN_ALL ON.

I am looking to isolate a chunk of code that takes the most time and not sure of how to do it.

Please help.

PS: I did try to google it, searched on Stackoverflow……….No luck. Here is one question that I looked at
How to improve SQL Server query containing nested sub query

Any help is really appreciated. Thanks in advance.

  • 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-27T12:30:42+00:00Added an answer on May 27, 2026 at 12:30 pm

    I would try out SQL Sentry’s SQL Plan Explorer. It gives you visual help in finding the problem. It is also a free tool. It highlights the bits that cost a lot of I/O or CPU, versus a generic percent.

    Here’s where you can check it out:
    http://www.sqlsentry.net/plan-explorer/sql-server-query-view.asp

    Eric

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

Sidebar

Related Questions

I am working on a table that has two formats of dates stored in
I’m working on a experiment regarding to a course I’m taking about tuning DB2.
I am currently working with a script that has lists that looks like this:
Working through trace tables and wanted to check to see if my results where
Working on a simple poker script in PHP and need a way to determine
Working with a SqlCommand in C# I've created a query that contains a IN
I'm currently developing a stored procedure for a complex search in a big database.
I’m working on tuning and increasing the performance of my IBM DB2 version 9.7
I am working on a large project that involves taking thousands (30,000+) static web
The project I am currently working on has, in the checkout, an option to

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.