Azure SQL DB and Managed Instance tempdb

Published 04-21-2021 01:22 PM 2,267 Views

The tempdb is a system database that holds the temporary user objects and internal objects.

 

Azure SQL DB

In Azure SQL DB tempdb is not visible under System Databases after connecting with SSMS but it is still important in order to avoid workload problems due to the limitations that it has. This limitations are different with the service level objective that we choose between: 

For DTU purchase model the limits will be this and for vCore we can find the TempDB max data size (GB) under each service objective here.

 

Azure Managed Instance

In Managed Instance tempdb is visible and it is split in 12 data files and 1 log file:

 

Screenshot 2021-04-21 215736.png

 

All system databases and user databases are counted as used storage size as compared to the maximum storage size of the instance.

To check the values for this sizes we can run this query:

 

select top 1 
    used_storage_gb = storage_space_used_mb/1024, 
    max_storage_size_gb = reserved_storage_mb/1024 
from sys.server_resource_stats order by start_time desc

 

For Managed Instance we have two service tiers: General Purpose and Business Critical for which the max tempdb size is:

 

General Purpose Business Critical
Limited to 24 GB/vCore (96 - 1,920 GB) and currently available instance storage size.
Add more vCores to get more TempDB space.
Log file size is limited to 120 GB.
Up to currently available instance storage size.

 

Issues due to tempdb usage

When executing a huge transaction with million of rows and high tempdb usage we might get the following error message:

 

Msg 40197, Level: 20, State: 1, Procedure storedProcedureName, the service has encountered an error processing your request. Please try again. Error code 1104

 

This does not give too much information but by executing the following:

select * from sys.messages where message_id = 1104

 

we will get more context on it:

 

TEMPDB ran out of space during spilling. Create space by dropping objects and/or rewrite the query to consume fewer rows. If the issue still persists, consider upgrading to a higher service level objective.

 

Some other errors that we might get:

 

  • 3958 Transaction aborted when accessing versioned row. Requested versioned row was not found. Your tempdb is probably out of space. Please refer to BOL on how to configure tempdb for versioning.
  • 3959 Version store is full. New versions could not be added. A transaction that needs to access the version store may be rolled back. Please refer to BOL on how to configure tempdb for versioning.
  • 3966 Transaction is rolled back when accessing version store. It was marked as a victim because it may need the row versions that have already been removed to make space in tempdb. Not enough disk space allocated for tempdb, or transaction running for too long and may potentially need the version that has been removed to make space in the version store. Allocate more space for tempdb, or make transactions shorter.
  • log for database 'tempdb' is full due to 'ACTIVE_TRANSACTION' and the holdup lsn is (196:136:33).

To investigate this ones this queries should be useful:

 

dbcc sqlperf(logspace)

select name, log_reuse_wait_desc, * from sys.databases

SELECT * FROM tempdb.sys.dm_db_file_space_usage 
GO

Select * from sys.dm_tran_version_store_space_usage
GO

SELECT * FROM sys.dm_exec_requests where open_transaction_count > 0
go

 

ACTIVE_TRANSACTION:

 

SQL Server will return a log_reuse_wait_desc value of ACTIVE_ TRANSACTION if it runs out of virtual log files because of an open transaction. Open transactions prevent virtual log file reuse, because the information in the log records for that transaction might be required to execute a rollback operation.

 

To prevent this log reuse wait type, make sure you design you transactions to be as short lived as possible and never require end user interaction while a transaction is open.

 

To reduce tempdb utilization we will need to look at the common tempdb usage areas which are:

 

  • Temp tables
  • Table variables
  • Table-valued parameters
  • Version store usage (associated with long running transactions)
  • Queries that have query plans that use sorts, hash joins, and spools

To identify top queries that are using temporary tables and table variables we can use this query 

 

To monitor the tempdb utilization the below query can be run with a 15 minute delay (it will print "high tempdb utilization" if the usage exceeds 90%):

 

DECLARE @size BIGINT 
DECLARE @maxsize BIGINT 
DECLARE @pctused BIGINT 
DECLARE @unallocated BIGINT 
DECLARE @used BIGINT 

SELECT @size = Sum (size), 
       @maxsize = Sum (max_size) 
FROM   tempdb.sys.database_files 
WHERE  type_desc = 'ROWS' 

SELECT @unallocated = Sum (unallocated_extent_page_count) 
FROM   tempdb.sys.dm_db_file_space_usage 

SELECT @used = @size - @unallocated 

SELECT @pctused = Ceiling (( @used * 100 ) / @maxsize) 

--select @used, @pctused 
IF ( @pctUsed > 90 ) 
  BEGIN 
      PRINT Cast (Getutcdate() AS NVARCHAR(50)) 
            + N': high tempdb utilization' 
  END 
GO

 

Other useful links

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2280702%22%20slang%3D%22en-US%22%3EAzure%20SQL%20DB%20and%20Managed%20Instance%20tempdb%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2280702%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Frelational-databases%2Fdatabases%2Ftempdb-database%3Fview%3Dsql-server-ver15%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Etempdb%3C%2FA%3E%20is%20a%20system%20database%20that%20holds%20the%20temporary%20user%20objects%20and%20internal%20objects.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-208125923%22%20id%3D%22toc-hId-208125923%22%3EAzure%20SQL%20DB%3C%2FH4%3E%0A%3CP%3EIn%20%3CSTRONG%3EAzure%20SQL%20DB%3C%2FSTRONG%3E%26nbsp%3Btempdb%20is%20not%20visible%20under%20System%20Databases%20after%20connecting%20with%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Fssms%2Fdownload-sql-server-management-studio-ssms%3Fview%3Dsql-server-ver15%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3ESSMS%3C%2FA%3E%26nbsp%3Bbut%20it%20is%20still%20important%20in%20order%20to%20avoid%20workload%20problems%20due%20to%20the%20limitations%20that%20it%20has.%20This%20limitations%20are%20different%20with%20the%20service%20level%20objective%20that%20we%20choose%20between%3A%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tiers-dtu%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EDTU-based%20purchase%20model%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tiers-vcore%3Ftabs%3Dazure-portal%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EvCore%20purchase%20model%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EFor%20DTU%20purchase%20model%20the%20limits%20will%20be%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsql%2Frelational-databases%2Fdatabases%2Ftempdb-database%3Fview%3Dsql-server-ver15%23tempdb-database-in-sql-database%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ethis%3C%2FA%3E%26nbsp%3Band%20for%20vCore%20we%20can%20find%20the%20TempDB%20max%20data%20size%20(GB)%20under%20each%20service%20objective%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fresource-limits-vcore-single-databases%23gen5-compute-generation-part-1-2%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehere.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--1599328540%22%20id%3D%22toc-hId--1599328540%22%3EAzure%20Managed%20Instance%3C%2FH4%3E%0A%3CP%3EIn%20%3CSTRONG%3EManaged%20Instance%3C%2FSTRONG%3E%20tempdb%20is%20visible%20and%20it%20is%20split%20in%2012%20data%20files%20and%201%20log%20file%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Screenshot%202021-04-21%20215736.png%22%20style%3D%22width%3A%20661px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F274388i4712DE642D5D74CB%2Fimage-dimensions%2F661x349%3Fv%3Dv2%22%20width%3D%22661%22%20height%3D%22349%22%20role%3D%22button%22%20title%3D%22Screenshot%202021-04-21%20215736.png%22%20alt%3D%22Screenshot%202021-04-21%20215736.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAll%20system%20databases%20and%20user%20databases%20are%20counted%20as%20used%20storage%20size%20as%20compared%20to%20the%20maximum%20storage%20size%20of%20the%20instance.%3C%2FP%3E%0A%3CP%3ETo%20check%20the%20values%20for%20this%20sizes%20we%20can%20run%20this%20query%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Eselect%20top%201%20%0A%20%20%20%20used_storage_gb%20%3D%20storage_space_used_mb%2F1024%2C%20%0A%20%20%20%20max_storage_size_gb%20%3D%20reserved_storage_mb%2F1024%20%0Afrom%20sys.server_resource_stats%20order%20by%20start_time%20desc%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20%3CSTRONG%3EManaged%20Instance%26nbsp%3B%3C%2FSTRONG%3Ewe%20have%20two%20service%20tiers%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-general-purpose%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EGeneral%20Purpose%3C%2FA%3E%26nbsp%3Band%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fservice-tier-business-critical%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EBusiness%20Critical%3C%2FA%3E%26nbsp%3Bfor%20which%20the%20max%20tempdb%20size%20is%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20border%3D%221%22%20width%3D%22100%25%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2229px%22%3EGeneral%20Purpose%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2229px%22%3EBusiness%20Critical%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2229px%22%3E%3CSPAN%3ELimited%20to%2024%20GB%2FvCore%20(96%20-%201%2C920%20GB)%20and%20currently%20available%20instance%20storage%20size.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3EAdd%20more%20vCores%20to%20get%20more%20TempDB%20space.%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%3ELog%20file%20size%20is%20limited%20to%20120%20GB.%3C%2FSPAN%3E%3C%2FTD%3E%0A%3CTD%20width%3D%2250%25%22%20height%3D%2229px%22%3E%3CSPAN%3EUp%20to%20currently%20available%20instance%20storage%20size.%3C%2FSPAN%3E%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId-888184293%22%20id%3D%22toc-hId-888184293%22%3EIssues%20due%20to%20tempdb%20usage%3C%2FH4%3E%0A%3CP%3EWhen%20executing%20a%20huge%20transaction%20with%20million%20of%20rows%20and%20high%20tempdb%20usage%20we%20might%20get%20the%20following%20error%20message%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3EMsg%2040197%2C%20Level%3A%2020%2C%20State%3A%201%2C%20Procedure%20storedProcedureName%2C%20the%20service%20has%20encountered%20an%20error%20processing%20your%20request.%20Please%20try%20again.%20Error%20code%201104%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20does%20not%20give%20too%20much%20information%20but%20by%20executing%20the%20following%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Eselect%20*%20from%20sys.messages%20where%20message_id%20%3D%201104%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewe%20will%20get%20more%20context%20on%20it%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3ETEMPDB%20ran%20out%20of%20space%20during%20spilling.%20Create%20space%20by%20dropping%20objects%20and%2For%20rewrite%20the%20query%20to%20consume%20fewer%20rows.%20If%20the%20issue%20still%20persists%2C%20consider%20upgrading%20to%20a%20higher%20service%20level%20objective.%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESome%20other%20errors%20that%20we%20might%20get%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E3958%26nbsp%3BTransaction%20aborted%20when%20accessing%20versioned%20row.%20Requested%20versioned%20row%20was%20not%20found.%20Your%20tempdb%20is%20probably%20out%20of%20space.%20Please%20refer%20to%20BOL%20on%20how%20to%20configure%20tempdb%20for%20versioning.%3C%2FLI%3E%0A%3CLI%3E3959%26nbsp%3BVersion%20store%20is%20full.%20New%20versions%20could%20not%20be%20added.%20A%20transaction%20that%20needs%20to%20access%20the%20version%20store%20may%20be%20rolled%20back.%20Please%20refer%20to%20BOL%20on%20how%20to%20configure%20tempdb%20for%20versioning.%3C%2FLI%3E%0A%3CLI%3E3966%26nbsp%3BTransaction%20is%20rolled%20back%20when%20accessing%20version%20store.%20It%20was%20marked%20as%20a%20victim%20because%20it%20may%20need%20the%20row%20versions%20that%20have%20already%20been%20removed%20to%20make%20space%20in%20tempdb.%20Not%20enough%20disk%20space%20allocated%20for%20tempdb%2C%20or%20transaction%20running%20for%20too%20long%20and%20may%20potentially%20need%20the%20version%20that%20has%20been%20removed%20to%20make%20space%20in%20the%20version%20store.%20Allocate%20more%20space%20for%20tempdb%2C%20or%20make%20transactions%20shorter.%3C%2FLI%3E%0A%3CLI%3Elog%20for%20database%20'tempdb'%20is%20full%20due%20to%20'ACTIVE_TRANSACTION'%20and%20the%20holdup%20lsn%20is%20(196%3A136%3A33).%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ETo%20investigate%20this%20ones%20this%20queries%20should%20be%20useful%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3Edbcc%20sqlperf(logspace)%0A%0Aselect%20name%2C%20log_reuse_wait_desc%2C%20*%20from%20sys.databases%0A%0ASELECT%20*%20FROM%20tempdb.sys.dm_db_file_space_usage%26nbsp%3B%0AGO%0A%0ASelect%20*%20from%20sys.dm_tran_version_store_space_usage%0AGO%0A%0ASELECT%20*%20FROM%20sys.dm_exec_requests%20where%20open_transaction_count%20%26gt%3B%200%0Ago%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CI%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3E%3CSTRONG%3EACTIVE_TRANSACTION%3C%2FSTRONG%3E%3A%3C%2FSPAN%3E%3C%2FI%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3ESQL%20Server%20will%20return%20a%26nbsp%3Blog_reuse_wait_desc%26nbsp%3Bvalue%20of%26nbsp%3BACTIVE_%20TRANSACTION%26nbsp%3Bif%20it%20runs%20out%20of%20virtual%20log%20files%20because%20of%20an%20open%20transaction.%20Open%20transactions%20prevent%20virtual%20log%20file%20reuse%2C%20because%20the%20information%20in%20the%20log%20records%20for%20that%20transaction%20might%20be%20required%20to%20execute%20a%20rollback%20operation.%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3ETo%20prevent%20this%20log%20reuse%20wait%20type%2C%20make%20sure%20you%20design%20you%20transactions%20to%20be%20as%20short%20lived%20as%20possible%20and%20never%20require%20end%20user%20interaction%20while%20a%20transaction%20is%20open.%3C%2FSPAN%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-size%3A%2012.0pt%3B%20color%3A%20black%3B%20background%3A%20white%3B%22%3ETo%20reduce%20tempdb%20utilization%20we%20will%20need%20to%20look%20at%20the%20common%20tempdb%20usage%20areas%20which%20are%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ETemp%20tables%3C%2FLI%3E%0A%3CLI%3ETable%20variables%3C%2FLI%3E%0A%3CLI%3ETable-valued%20parameters%3C%2FLI%3E%0A%3CLI%3EVersion%20store%20usage%20(associated%20with%20long%20running%20transactions)%3C%2FLI%3E%0A%3CLI%3EQueries%20that%20have%20query%20plans%20that%20use%20sorts%2C%20hash%20joins%2C%20and%20spools%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3ETo%20identify%20top%20queries%20that%20are%20using%20temporary%20tables%20and%20table%20variables%20we%20can%20use%20this%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-sql%2Fdatabase%2Fmonitoring-with-dmvs%23top-queries-that-use-table-variables-and-temporary-tables%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Equery%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20monitor%20the%20tempdb%20utilization%20the%20below%20query%20can%20be%20run%20with%20a%2015%20minute%20delay%20(it%20will%20print%20%22high%20tempdb%20utilization%22%20if%20the%20usage%20exceeds%2090%25)%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3EDECLARE%20%40size%20BIGINT%20%0ADECLARE%20%40maxsize%20BIGINT%20%0ADECLARE%20%40pctused%20BIGINT%20%0ADECLARE%20%40unallocated%20BIGINT%20%0ADECLARE%20%40used%20BIGINT%20%0A%0ASELECT%20%40size%20%3D%20Sum%20(size)%2C%20%0A%20%20%20%20%20%20%20%40maxsize%20%3D%20Sum%20(max_size)%20%0AFROM%20%20%20tempdb.sys.database_files%20%0AWHERE%20%20type_desc%20%3D%20'ROWS'%20%0A%0ASELECT%20%40unallocated%20%3D%20Sum%20(unallocated_extent_page_count)%20%0AFROM%20%20%20tempdb.sys.dm_db_file_space_usage%20%0A%0ASELECT%20%40used%20%3D%20%40size%20-%20%40unallocated%20%0A%0ASELECT%20%40pctused%20%3D%20Ceiling%20((%20%40used%20*%20100%20)%20%2F%20%40maxsize)%20%0A%0A--select%20%40used%2C%20%40pctused%20%0AIF%20(%20%40pctUsed%20%26gt%3B%2090%20)%20%0A%20%20BEGIN%20%0A%20%20%20%20%20%20PRINT%20Cast%20(Getutcdate()%20AS%20NVARCHAR(50))%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%2B%20N'%3A%20high%20tempdb%20utilization'%20%0A%20%20END%20%0AGO%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH4%20id%3D%22toc-hId--919270170%22%20id%3D%22toc-hId--919270170%22%3EOther%20useful%20links%3C%2FH4%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fthesqldude.com%2F2012%2F05%2F15%2Fmonitoring-tempdb-space-usage-and-scripts-for-finding-queries-which-are-using-excessive-tempdb-space%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EMonitoring%20tempdb%20space%20usage%20and%20scripts%20for%20finding%20queries%20which%20are%20using%20excessive%20tempdb%20space%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-database-support-blog%2Fazure-sql-db-and-tempdb-usage-tracking%2Fba-p%2F1573220%22%20target%3D%22_self%22%3EAzure%20SQL%20DB%20and%20TEMPDB%20usage%20tracking%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.mssqltips.com%2Fsqlservertip%2F4132%2Fcorrect-sql-server-tempdb-spills-in-query-plans-caused-by-outdated-statistics%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ECorrect%20SQL%20Server%20TempDB%20Spills%20in%20Query%20Plans%20Caused%20by%20Outdated%20Statistics%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FFonsecaSergio%2FScriptCollection%2Fblob%2Fmaster%2FSQL%2FAzureSQL%2520-%2520Monitor%2520tempdb%2520usage.sql%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EMonitor%20tempdb%20usage%20scripts%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2280702%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2280702%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20SQL%20DB%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EManaged%20Instance%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etempdb%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Apr 21 2021 01:22 PM
Updated by: