Skip to content

Latest commit

 

History

History
57 lines (42 loc) · 2.21 KB

dbcc-showresultcachespaceused-transact-sql.md

File metadata and controls

57 lines (42 loc) · 2.21 KB
titledescriptionauthorms.authorms.reviewerms.datems.servicems.subservicems.topicdev_langsmonikerRange
DBCC SHOWRESULTCACHESPACEUSED (Transact-SQL)
DBCC SHOWRESULTCACHESPACEUSED shows the storage space used result set caching for an Azure Synapse Analytics database.
mstehrani
emtehran
wiassaf, randolphwest
12/05/2022
sql
data-warehouse
reference
TSQL
= azure-sqldw-latest

DBCC SHOWRESULTCACHESPACEUSED (Transact-SQL)

[!INCLUDE asa]

Shows the storage space used result set caching for an [!INCLUDEssazuresynapse-md] database.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

DBCC SHOWRESULTCACHESPACEUSED [;] 

Remarks

The DBCC SHOWRESULTCACHESPACEUSED command doesn't take any parameters and returns the space used by the database where the command is run.

Permissions

Requires VIEW SERVER STATE permission.

Result sets

ColumnData typeDescription
reserved_spacebigintTotal space used for the database, in KB. This number will change as the cached result set increases.
data_spacebigintSpace used for data, in KB.
index_spacebigintSpace used for indexes, in KB.
unused_spacebigintSpace that is part of the reserved space and not used, in KB.

See also

close