Skip to content

Latest commit

 

History

History
64 lines (50 loc) · 3.25 KB

File metadata and controls

64 lines (50 loc) · 3.25 KB

title: "Threads Window | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: sql ms.technology: ssms ms.reviewer: "" ms.suite: "sql" ms.tgt_pltfrm: "" ms.topic: conceptual f1_keywords:

  • "vs.debug.threads" helpviewer_keywords:
  • "Threads Window [Transact-SQL]" ms.assetid: e153f619-0049-4162-9076-c24a454f3278 caps.latest.revision: 13 author: MightyPen ms.author: genemi manager: craigg monikerRange: ">= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || = sqlallproducts-allversions"

Transact-SQL Debugger - Threads Window

[!INCLUDEappliesto-ss-asdb-asdw-pdw-md] The Threads window displays information about the [!INCLUDEssDE] thread that is used by the [!INCLUDEssDE] Query Editor session that is being debugged. You must be in debug mode to display the thread information.

Task List

To access the Threads window

  • On the Debug menu, click Windows, and then click Threads.

Columns

ID
Is a unique identifying number that the [!INCLUDEtsql] debugger assigns to the thread. You can find more information about the thread by selecting a row from the sys.dm_os_threads dynamic management view.

If you are not running in lightweight pooling mode, select the row in which the value in os_thread_id matches the value in the ID column. If you are running in lightweight pooling mode, select the row in which the value in fiber_context_address matches the value in the ID column.

Name
Displays information about the [!INCLUDEssDE] session in the format ComputerName/InstanceName [SPID].

ComputerName
The name of the computer that is running the instance of the [!INCLUDEssDE] that the Query Editor session is connected to.

InstanceName
The name of the instance of the [!INCLUDEssDE] that the Query Editor session is connected to.

[SPID]
The [!INCLUDEssNoVersion] session process ID that uniquely identifies this session. You can obtain more information about the session by selecting the row in the sys.sysprocesses view that has the same value in the spid column.

Location
Displays the name of the script file that is used in the Query Editor session that is being debugged.

Priority
The [!INCLUDEtsql] debugger does not support this feature.

Suspend
The [!INCLUDEtsql] debugger does not support this feature.

See Also

Transact-SQL Debugger
Transact-SQL Debugger Information
sys.dm_os_threads (Transact-SQL)
sys.sysprocesses (Transact-SQL)