Solved

SQL return after running sp_who2

Posted on 2004-08-03
5
593 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
  • 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

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

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

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now