Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

sysprocesses.status always return "sleeping"

 
   Database Help (Home) -> Programming RSS
Next:  declaring cursor slow under windows XP  
Author Message
BM

External


Since: Jan 26, 2007
Posts: 1



(Msg. 1) Posted: Fri Jan 26, 2007 9:07 am
Post subject: sysprocesses.status always return "sleeping"
Archived from groups: microsoft>public>sqlserver>programming (more info?)

Hi

With SQL Server 2000, I have created a profiler with DB_ID = x, every things
is ok and I can see running queries,
But if I query sysprocesses with query like this :

select sql_handle, spid, status, last_batch, waitresource
from master.dbo.sysprocesses with(nolock)
where DBID = x

The status for all spid is always 'sleeping'
and sql_handle = 0x0000000000000000000000000000000000000000

Do you experience this before ? Do you have any idea what might cause this
sql server behaviour ?

Thank you for your help

 >> Stay informed about: sysprocesses.status always return ""sleeping"" 
Back to top
Login to vote
sterillo

External


Since: Jan 29, 2007
Posts: 10



(Msg. 2) Posted: Fri Jan 26, 2007 11:48 am
Post subject: Re: sysprocesses.status always return "sleeping" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"sleeping" indicates that UMS scheduler has put the thread on waiting
queue while the resource it has requested (memory, disk IO etc) becomes
available. Google "ums scheduler" and "waits" for more information on
this topic.

Hope this helps

Sal Terillo

On Jan 26, 9:07 am, "BM" wrote:
> Hi
>
> With SQL Server 2000, I have created a profiler with DB_ID = x, every things
> is ok and I can see running queries,
> But if I query sysprocesses with query like this :
>
> select sql_handle, spid, status, last_batch, waitresource
> from master.dbo.sysprocesses with(nolock)
> where DBID = x
>
> The status for all spid is always 'sleeping'
> and sql_handle = 0x0000000000000000000000000000000000000000
>
> Do you experience this before ? Do you have any idea what might cause this
> sql server behaviour ?
>
> Thank you for your help

 >> Stay informed about: sysprocesses.status always return ""sleeping"" 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Sleeping processes - After I've shut down my applicatiion, I've had a look at the processes within SQL EM. There are 4 'sleeping' processes still open for the application. The sp that it calls within the application are named. In my code should I issue a close to the..

Opinion on Killing Sleeping SPIDS - I have an application that keeps open connections and there are tons of Sleeping SPIDS in the database that are days and weeks old. Should I run a sp to kill them and do this on a current basis on my SQL 2000 ent?

Lots of sleeping processes! SQL2000 and C# application - Hi all, I have just inherited a framework written in C# which is used to store objects into a database via ADO.NET. When I did a bulk insert the database started to run slow I logged into MSSQL enterprise manager and looked at the running processes unde...

dbmail status - We have process that creates an email which then is sent using dbmail. When I look in the dbmail log I see that it was sent successfully to the SMTP server but really the format of the recipient is not formatted correctly. How can I get the error back...

Connection Status - I have a table with the following information/columns: ServerName UserName PWord ConnectionStatus I want to write a SQL script that will test the user connection with the information in the table and update the ConnectionStatus column with a zero (0)...
   Database Help (Home) -> Programming All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]