Export (0) Print
Expand All
Collapse the table of content
Expand the table of content
Expand Minimize

sys.dm_os_stacks (Transact-SQL)


Applies To: SQL Server 2014, SQL Server 2016 Preview

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.

Applies to: SQL Server (SQL Server 2008 through current version).

Column name

Data type




Unique address for this stack allocation. Is not nullable.



Each 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.



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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2015 Microsoft