Solved

SQL return after running sp_who2

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

760 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

18 Experts available now in Live!

Get 1:1 Help Now