SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SysProcesses Table


SysProcesses Table

Author
Message
gigadr3w
gigadr3w
SSC Rookie
SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)SSC Rookie (27 reputation)

Group: General Forum Members
Points: 27 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
SQLZ
SQLZ
Hall of Fame
Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)Hall of Fame (3.2K reputation)

Group: General Forum Members
Points: 3160 Visits: 940
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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search