Share via

SQL Server taking very long time to execute

Chaitanya Kiran Buduguru 176 Reputation points
2021-05-20T05:01:56.957+00:00

Today morning, I executed sp_who2 and SQL Server is taking very long time. I tried executing other commands and some queries but they are also taking long time to execute. SQL Server was fine yesterday. I am unable to understand what the resolution is. Could you please help

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Chaitanya Kiran Buduguru 176 Reputation points
2021-05-21T07:23:05.447+00:00

Hi Carrin,

No changes were made to SQL Server. DId not get results of sp_who2, ran it for 5 hours. My company does not allow downloads. So, can you please advise how to fix this issue.

Was this answer helpful?


3 additional answers

Sort by: Most helpful
  1. CarrinWu-MSFT 6,891 Reputation points
    2021-05-21T05:54:39.103+00:00

    Hi @Chaitanya Kiran Buduguru ,

    Welcome to Microsoft Q&A!

    Have you made any changes for your SQL Server? Although sp_who2 take a long time to execute, have you get any results? I recommend that you could use sp_BlitzFirst to help you troubleshoot slow SQL Servers.

    Best regards,
    Carrin


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


  2. Chaitanya Kiran Buduguru 176 Reputation points
    2021-05-20T11:35:02.13+00:00

    But why SP_WHO2 is executing for a long time, I had to cancel the query.

    Was this answer helpful?

    0 comments No comments

  3. AddWebSolution 171 Reputation points
    2021-05-20T10:46:44.903+00:00

    Hello,

    This may occur if your table is not properly indexed,the Database Engine had to search from the Start to End to find the matching values
    There are so many factors that may affect the performance. Indexing is the primary one.

    Check This Link for more performance-tuning

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.