Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SysProcesses Table Expand / Collapse
Author
Message
Posted Friday, April 18, 2008 4:32 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Wednesday, May 21, 2008 2:39 AM
Points: 3, Visits: 10
Hi at all,
a simple question. Do someone know what kind of processes contain this table?

...explaining better...
If my application 'xxx', connect to my Database and exec a simple query, this operation (cmd = SELECT) and my application result in the sysprocesses table. And there, nothing wrong...
But when my application has finished to elaborate the query, this process (just executed, signed with cmd = AWAITING COMMAND) is traced again... until my application is connected.

Why? Can I interprete the connection like a SQL process (tracet into sysprocess table)?

Another question, (i've tryed to find something around the web, but nothing exhaustive...) what's the meaning for:
SELECT
AWAITING COMMAND
LAZY WRITER
...and so on?

Thx
Andrea
Post #487041
Posted Friday, April 18, 2008 5:11 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Friday, September 12, 2014 9:02 AM
Points: 870, Visits: 898
Basically,

After your application has done what it needs to do the connection is not instantly dropped. The connection remains open in the application pool. As such, AWAITING COMMAND is just an indication that there's an open connection on the SQL Server and it's doing nothing. It's just sitting there waiting for a command of some type.

If you opened a query window in query analyzer and you checked in sysprocesses for that particular spid you'd see the same thing, AWAITING COMMAND.

Commands like LAZY WRITER, CHECKPOINT SLEEP, LOCK MONITOR, etc... are just background tasks that you shouldn't need to worry about.


Karl
source control for SQL Server
Post #487068
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse