?
Solved

SQL return after running sp_who2

Posted on 2004-08-03
5
Medium Priority
?
608 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 200 total points
ID: 11709753
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

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

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to shrink a transaction log file down to a reasonable size.

719 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