sp_who 提供 SQL Server Database Engine 執行個體中有關目前使用者、工作階段和處理序的資訊。
可以篩選資訊,只傳回屬於特定使用者或屬於特定工作階段的非閒置處理序。
sp_who2 是 undocumented 與 unsupported,但提供更多的資訊,例如:CPUTime、DiskIO、LastBatch、ProgramName 等。

— 90_列出特定使用者的處理序

— 91_顯示所有使用中的處理序,排除在等待使用者下一個命令的工作階段

— 100_sp_who

— 101_sp_who_SPID

— 102_sp_who2

— 103_sp_who2_CPU_IO_LastBatch

— 104_sp_who2_SPID

— 105_sp_who2_SPID_CPU_IO_LastBatch

— 106_ 詭異的時間
