sys.dm_os_stacks (Transact-SQL)

sys.dm_os_stacks (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

This dynamic management view is used internally by SQL Server to do the following:

  • Keep track of debug data such as outstanding allocations.

  • Assume or validate logic that is used by SQL Server components in places where the component assumes that a certain call has been made.

Column nameData typeDescription
stack_addressvarbinary(8)Unique address for this stack allocation. Is not nullable.
frame_indexintEach line represents a function call that, when sorted in ascending order by frame index for a particular stack_address, returns the full call stack. Is not nullable.
frame_addressvarbinary(8)Address of the function call. Is not nullable.

sys.dm_os_stacks requires that the symbols of the server and other components be present on the server to display the information correctly.

On SQL Server requires VIEW SERVER STATE permission on the server.

On SQL Database Premium Tiers requires the VIEW DATABASE STATE permission in the database. On SQL Database Standard and Basic Tiers requires the SQL Database admin account.

Dynamic Management Views and Functions (Transact-SQL)
SQL Server Operating System Related Dynamic Management Views (Transact-SQL)

Community Additions

ADD
Show:
© 2016 Microsoft