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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:24:51+00:00 2026-06-15T20:24:51+00:00

My colleague asked me a question today I have a SQL script containing 4

  • 0

My colleague asked me a question today

“I have a SQL script containing 4 select queries. I have been using it
daily for more than a month but yesterday same query took 2 hours and
I had to aborting execution.”

His questions were

  • Q1. What happened to this script on that day?
  • Q2. How can I check of those 4 queries which of them got executed and which one culprit for abort?

My answer to Q2 was to use SQL profiler and check trace for Sql statement event.

For Q1:
I asked few questions to him

  1. What was the volume of data on that day?
    His answer: No change
  2. Was there any change in indexing i.e. someone might have dropped indexing? His answer: No Change
  3. Did it trapped in a deadlock by checking data management views to track it? His answer: Not in a deadlock

What else do you think I should have considered to ask? Can there be any other reason for this?

Since I didn’t see the query so I can’t paste it 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-06-15T20:24:52+00:00Added an answer on June 15, 2026 at 8:24 pm

    Things to look at (SQL Server):

    1. Statistics out of date? Has somebody run a large bulk insert operation? Run update statistics.

    2. Change in indexing? If so, if it’s a stored procedure, check the execution plan and/or recompile it…then check the execution plan again and correct any problems.

    3. SQL Server caches execution plans. If you query is parameterized or uses if-then-else logic, the first time it runs, if the parameters are an edge case, the execution plan cached can work poorly for ordinary executions. You can read more about this…ah…feature at:

      • http://www.solidq.com/sqj/Pages/2011-April-Issue/Parameter-Sniffing-Problem-with-SQL-Server-Stored-Procedures.aspx

      • http://social.msdn.microsoft.com/Forums/en-US/transactsql/thread/88ff51a4-bfea-404c-a828-d50d25fa0f59

      • SQL poor stored procedure execution plan performance – parameter sniffing

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

Sidebar

Related Questions

I have been asked this question by a colleague that should we always include
I was asked this question today by a colleague, and couldn't find any clue
A colleague asked me, if you have a table in SQL Server with only
A colleague asked me an interesting question today - is the C# keyword/operator is
My colleague asked me a question regarding getting data from a SQL Server database.
I have been asked to extract info by an academic colleague from a website
I have looked around here to see if somebody has asked this question before
I asked this same question about a week ago, but I might not have
I have been using ReSharper for quite a long time and get used to
Today in my college a teacher asked me a question. He wrote this code

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.