Help with database 'tempdb' has reached its size quota

Henry Fung 0 Reputation points
2023-09-28T11:37:13.9566667+00:00

Hi, please help with below error. is there a command to clear or reduce the current size of tempdb??

Msg 50000, Level 17, State 2, Procedure xxx, Line 5315 [Batch Start Line 0]
xxx:Line 2940:The database 'tempdb' has reached its size quota. Partition or delete data, drop indexes, or consult the documentation for possible resolutions.

Azure SQL Database
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Henry Fung 0 Reputation points
    2023-09-28T11:40:23.0733333+00:00

    this has been answered many times... see [https://learn.microsoft.com/en-us/answers/questions/249109/error-the-tempdb-has-reached-its-size-(db-in-azure?childtoview=251609#comment-251609](https://learn.microsoft.com/en-us/answers/questions/249109/error-the-tempdb-has-reached-its-size-(db-in-azure?childtoview=251609#comment-251609)

    0 comments No comments

  2. Henry Fung 0 Reputation points
    2023-09-28T11:47:59.8666667+00:00
    0 comments No comments

  3. RahulRandive 9,506 Reputation points
    2023-09-28T13:13:51.2066667+00:00

    Hi @Henry Fung

    For Azure SQL Database tempdb issue, please check below community blog for possible mitigation options.

    The blog includes queries to monitor tempdb usage.

    Resolve tempdb-related errors in Azure SQL Database - Microsoft Community Hub

    Thank you!

    0 comments No comments

Your answer

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