Solved

SQL return after running sp_who2

Posted on 2004-08-03
5
603 Views
Last Modified: 2008-02-01
After I running the sp_who2, i fould the some returns which i have dont know,
SPID  Status                    DBName        Command
----------------------------------------------------------------------
 1     sleeping                   master           SIGNAL HANDLER
 2     BACKGROUND        master           LOCK MONITOR
 3     BACKGROUND        master          LAZY WRITER
 4     sleeping                   master          LOG WRITER
 5     sleeping                   master          CHECKPOINT SLEEP

Can anyone explain to me what is that talking about? Thanks
0
Comment
Question by:shyline777
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 7

Expert Comment

by:FDzjuba
ID: 11709714
its just some data from the server of the current activity of the server, what exactly do you want to know about it ?
0
 
LVL 7

Expert Comment

by:FDzjuba
ID: 11709728
sp_who returns a result set with the following information.

Column Data type Description
spid smallint The system process ID.  
ecid smallint The execution context ID of a given thread associated with a specific SPID.
ECID = {0, 1, 2, 3, ...n}, where 0 always represents the main or parent thread, and {1, 2, 3, ...n} represent the sub-threads.
 
status nchar(30) The process status.
loginame nchar(128) The login name associated with the particular process.
hostname nchar(128) The host or computer name for each process.
blk char(5) The system process ID for the blocking process, if one exists. Otherwise, this column is zero.
When a transaction associated with a given spid is blocked by an orphan distributed transaction, this column will return a '-2' for the blocking orphan transaction.
 
dbname nchar(128) The database used by the process.
cmd nchar(16) The SQL Server command (Transact-SQL statement, SQL Server internal engine process, and so on) executing for the process.

0
 
LVL 7

Accepted Solution

by:
FDzjuba earned 50 total points
ID: 11709753
0

Featured Post

Is Your DevOps Pipeline Leaking?

Is your CI/CD pipeline a hodge-podge of randomly connected tools? You’ve likely got a tool to fix one problem & then a different tool to fix another, resulting in a cluster of tools with overlapping functionality. Learn how to optimize your pipeline with Gartner's recommendations

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question