Home All Groups Group Topic Archive Search About

SQL Server processes and ADO.NET

Author
3 Jan 2006 9:30 PM
Abelardo Vacca
Hello,

I have a web application accessing SQL Server 2K through ADO.NET

The application is working fine, but while monitoring the processes in SQL
Server Enterprise Manager, I noticed each user connecting to the application
creating a NEW process in "awaiting command" state.

I would like to know if this is normal, do "awating command" processes
represent connections left in an open state?

Thank you

Author
4 Jan 2006 12:37 AM
William (Bill) Vaughn
100% normal. This is your connection's "agent" that does all the work
requested by the connection. It's closed down when the connection closes.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"Abelardo Vacca" <AbelardoVa***@discussions.microsoft.com> wrote in message
news:9A5DB456-B950-4C14-98CE-6B52B65C1741@microsoft.com...
> Hello,
>
> I have a web application accessing SQL Server 2K through ADO.NET
>
> The application is working fine, but while monitoring the processes in SQL
> Server Enterprise Manager, I noticed each user connecting to the
> application
> creating a NEW process in "awaiting command" state.
>
> I would like to know if this is normal, do "awating command" processes
> represent connections left in an open state?
>
> Thank you
Author
4 Jan 2006 1:16 PM
Abelardo Vacca
Thank you Bill.

Actually, the application is ALWAYS leaving an "agent" open per user session
(only ONE per session) .... even after all ADO.NET connections are closed
!!!! (or at least I think they are) ... even after the session is closed ...
these "agents" remain for a few minutes before they time out. -  The good
thing is all requests are using the same "connection" (agent), so I suppose
these are not connections left open -

Is this he case you refer to as normal?

Thanks again for the help.


--
Abelardo Vacca


Show quote
"William (Bill) Vaughn" wrote:

> 100% normal. This is your connection's "agent" that does all the work
> requested by the connection. It's closed down when the connection closes.
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> INETA Speaker
> www.betav.com/blog/billva
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no rights.
> __________________________________
>
> "Abelardo Vacca" <AbelardoVa***@discussions.microsoft.com> wrote in message
> news:9A5DB456-B950-4C14-98CE-6B52B65C1741@microsoft.com...
> > Hello,
> >
> > I have a web application accessing SQL Server 2K through ADO.NET
> >
> > The application is working fine, but while monitoring the processes in SQL
> > Server Enterprise Manager, I noticed each user connecting to the
> > application
> > creating a NEW process in "awaiting command" state.
> >
> > I would like to know if this is normal, do "awating command" processes
> > represent connections left in an open state?
> >
> > Thank you
>
>
>
Author
4 Jan 2006 7:57 PM
William (Bill) Vaughn
Ah, what you're seeing is the Connection Pool holding the connection open
long after you close it. If you stop the application, the pool is torn down
and all of these "agents" (sleeping processes) are ended.

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"Abelardo Vacca" <AbelardoVa***@discussions.microsoft.com> wrote in message
news:0E84AFFE-9825-49C8-85B0-BBDE55336073@microsoft.com...
> Thank you Bill.
>
> Actually, the application is ALWAYS leaving an "agent" open per user
> session
> (only ONE per session) .... even after all ADO.NET connections are closed
> !!!! (or at least I think they are) ... even after the session is closed
> ...
> these "agents" remain for a few minutes before they time out. -  The good
> thing is all requests are using the same "connection" (agent), so I
> suppose
> these are not connections left open -
>
> Is this he case you refer to as normal?
>
> Thanks again for the help.
>
>
> --
> Abelardo Vacca
>
>
> "William (Bill) Vaughn" wrote:
>
>> 100% normal. This is your connection's "agent" that does all the work
>> requested by the connection. It's closed down when the connection closes.
>>
>> --
>> ____________________________________
>> William (Bill) Vaughn
>> Author, Mentor, Consultant
>> Microsoft MVP
>> INETA Speaker
>> www.betav.com/blog/billva
>> www.betav.com
>> Please reply only to the newsgroup so that others can benefit.
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>> __________________________________
>>
>> "Abelardo Vacca" <AbelardoVa***@discussions.microsoft.com> wrote in
>> message
>> news:9A5DB456-B950-4C14-98CE-6B52B65C1741@microsoft.com...
>> > Hello,
>> >
>> > I have a web application accessing SQL Server 2K through ADO.NET
>> >
>> > The application is working fine, but while monitoring the processes in
>> > SQL
>> > Server Enterprise Manager, I noticed each user connecting to the
>> > application
>> > creating a NEW process in "awaiting command" state.
>> >
>> > I would like to know if this is normal, do "awating command" processes
>> > represent connections left in an open state?
>> >
>> > Thank you
>>
>>
>>

AddThis Social Bookmark Button