Examining why sql has so many processes awaiting

Posted on 2006-04-27
Last Modified: 2008-03-10
im looking at the results in sp_who2.   I see a lot of awaiting commands.

I have done dbcc opentran (database)
i see the oldest is our replication.

I done

select * from sysprocesses where blocked > 0
   nothing blocked.

Done sql profiler on 1204, 3605 for deadlocks - nothing

Still there are over 300-400 processes for awaiting command
Which ones are for system processes.....and must not be killed (if all of these are sa i assume that these are system or someones has hold of the sa password).

Anything else to look at.

Question by:TRACEYMARY
    LVL 20

    Assisted Solution

    Awaiting command typically means that the process is complete, but the connection remains. SQL has done the work requested and is just waiting for your next statement.
    LVL 75

    Accepted Solution

    Processes with  'DbName' = ny of the system databases are System Processes (master,tempdb, msdb..)
    LVL 20

    Expert Comment

    It's possible that you started a transaction and never finished it.
    LVL 75

    Expert Comment

    by:Aneesh Retnakaran
    > Still there are over 300-400 processes for awaiting command
    these are waiting to finish. Process state ca be running,awaiting,sleeping etc

    You wont be able to kill most of the sysprocesses

    better you refer Some Operating System Book to get an idea of the process.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
    Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
    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.
    Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

    728 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

    20 Experts available now in Live!

    Get 1:1 Help Now