Showing posts with label connections. Show all posts
Showing posts with label connections. Show all posts

Wednesday, March 21, 2012

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisR
EXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>
|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>
|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>
|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>
|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always has
>> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
>> was thinking to open Profiler and use the "existing connections" option
>> but was wondering if there is a better way?
>>
>> TIA, ChrisR
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
--
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>> Thanks Mike... but heres what I dont get. I have a local sql server on my
>> desktop. No replication, the server agent isnt on, I have 2 open Query
>> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and
>> shows 13 connections, sysprocesses show 16. What is making up all these
>> connections?
>>
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>> That will show you the Active connections.
>> If you need to know the exact number, query sysprocesses.
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
>> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>> EXEC sp_who 'active'
>> --
>> --
>> Mike Epprecht, Microsoft SQL Server MVP
>> Zurich, Switzerland
>> IM: mike@.epprecht.net
>> MVP Program: http://www.microsoft.com/mvp
>> Blog: http://www.msmvps.com/epprecht/
>> "ChrisR" <noemail@.bla.com> wrote in message
>> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>> How do I tell how many connections to the db there are? sp_who always
>> has lots of "backgrounds" and "sleeping" in it so thats not reall
>> accurate. I was thinking to open Profiler and use the "existing
>> connections" option but was wondering if there is a better way?
>>
>> TIA, ChrisR
>>
>>
>>
>

how many open connections?

How do I tell how many connections to the db there are? sp_who always has
lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
was thinking to open Profiler and use the "existing connections" option but
was wondering if there is a better way?
TIA, ChrisREXEC sp_who 'active'
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"ChrisR" <noemail@.bla.com> wrote in message
news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
> How do I tell how many connections to the db there are? sp_who always has
> lots of "backgrounds" and "sleeping" in it so thats not reall accurate. I
> was thinking to open Profiler and use the "existing connections" option
> but was wondering if there is a better way?
>
> TIA, ChrisR
>|||That will show you the Active connections.
If you need to know the exact number, query sysprocesses.
--
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland
IM: mike@.epprecht.net
MVP Program: http://www.microsoft.com/mvp
Blog: http://www.msmvps.com/epprecht/
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
> EXEC sp_who 'active'
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "ChrisR" <noemail@.bla.com> wrote in message
> news:uJ%232hKDeFHA.3932@.TK2MSFTNGP12.phx.gbl...
>|||Thanks Mike... but heres what I dont get. I have a local sql server on my
desktop. No replication, the server agent isnt on, I have 2 open Query
Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
13 connections, sysprocesses show 16. What is making up all these
connections?
"Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
> That will show you the Active connections.
> If you need to know the exact number, query sysprocesses.
> --
> --
> Mike Epprecht, Microsoft SQL Server MVP
> Zurich, Switzerland
> IM: mike@.epprecht.net
> MVP Program: http://www.microsoft.com/mvp
> Blog: http://www.msmvps.com/epprecht/
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:e4uAgYDeFHA.580@.TK2MSFTNGP15.phx.gbl...
>|||Client processes are those with spid > 50. The other ones are background
server processes e.g lazy writer, lock monitor, log writer etc. There can be
a variable number of these dependent on load an other factors. I fyou're
just interested in client connections then you need to filter on spid>50
HTH
Jasper Smith (SQL Server MVP)
http://www.sqldbatips.com
I support PASS - the definitive, global
community for SQL Server professionals -
http://www.sqlpass.org
"ChrisR" <noemail@.bla.com> wrote in message
news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
> Thanks Mike... but heres what I dont get. I have a local sql server on my
> desktop. No replication, the server agent isnt on, I have 2 open Query
> Analyzer and 1 open Enterprise Manager. Both the sp_who 'active' and shows
> 13 connections, sysprocesses show 16. What is making up all these
> connections?
>
> "Mike Epprecht (SQL MVP)" <mike@.epprecht.net> wrote in message
> news:OCTL4cDeFHA.3816@.TK2MSFTNGP10.phx.gbl...
>|||Awesome. Thanks to both of you.
"Jasper Smith" <jasper_smith9@.hotmail.com> wrote in message
news:%23n89iOEeFHA.3280@.TK2MSFTNGP09.phx.gbl...
> Client processes are those with spid > 50. The other ones are background
> server processes e.g lazy writer, lock monitor, log writer etc. There can
> be a variable number of these dependent on load an other factors. I
> fyou're just interested in client connections then you need to filter on
> spid>50
> --
> HTH
> Jasper Smith (SQL Server MVP)
> http://www.sqldbatips.com
> I support PASS - the definitive, global
> community for SQL Server professionals -
> http://www.sqlpass.org
> "ChrisR" <noemail@.bla.com> wrote in message
> news:e6fHU1DeFHA.4040@.TK2MSFTNGP14.phx.gbl...
>

How many open connections does SQL server 2005 express allow to .mdf file

Hi Guys, how many connections does sql 2005 express allow to .mdf file. I stumpled on info on a microsoft site (actually a forum post on msdn) that sql server express allows only a single connection to an .mdf file.

Iam intrested in this because i developed reporting services reports in BIS and iam having problems. If i run a report from report manager, i have to wait for close to 20 minutes before i can be able to run my asp.net application agian. Else if i insert data or retrieve data from my asp.net application, then i have to wait again for 20 minutes or more before i can be able to run my reports else i will get an error that a connection can not be made to the database or that the database is being used by another process.

So in all cases, i have to wait for 20--30 minutes before a connection can be made to the .mdf file. i.e after running a report or after inserting or retrieving data from the database through my asp.net application.

Iam using sql sever 2005 express with advanced services and visual web developer on windows server 2003.

Any ideas or help.

Hi Nick,

Sql Express Allows multiple connection to a mdf file. The important thing to note down is are you using different connection string and the limit on sql express is set to 1. coz if u will change the connectionstring it will try to create a new connection and in case if the limit is set to 1. you need to wait till the earlier connection is close or inactive.

I have developed a asp.net site hosted on server with Sql express MDF file and i am able to open page from different browser at the same time and can get different response at the same time.

Hope this will help

Satya

|||

Thankssatya_tanwar,

Yes with my application here i can open different pages or the same page in very many windows and from very many computers but problems crop up when i try to run reports hosted on a reporting services report server from report manager. If the application is open and i try to run my reports i get an error that the database is being used by another process. Likewise if i run my reports before running the application, they run correctly but then iam unable to run the application, it will also tell me the database is closed. My work around so far is to wait for close to 30 minutes for the connection to open it self with out my intervation but this is undesirable for the users.

Then most importantly from your replyt, please give more light on the use of different connection strings. I have a connection string in my web.config file of my asp.net application. Then when designing sql server reporting services reports in business interlligence development studio, your prompted to provide a connection string to the database file your attaching and you either type or paste it manually or you click edit and browse to location of your database. If you browse to the database, the connection string is build for you and this is the approach i take. so i woould imagine that the connection strings will be the same in the web.config and for my report datasource because the location of the database is the same.

I had not thought about this connection string issue but iam going to verify if they match. In the mean time though, give me your take from what i have explained. I badly deadly need to deploy sql server reporting services.

sql

Monday, March 19, 2012

How many connections does MSDE support?

I always thought that MSDE supported up to 5 concurrent connections. However, I was just at Microsoft's Web site and it says that MSDE supports *25* concurrent connections:

http://www.microsoft.com/sql/msde/downloads/download.asp

There's a big difference between 5 connections and 25. Did MS just release a new version of MSDE? Is there a catch?Read carefully:

Basic websites that serve up to 25 concurrent users.

That means exactly that: In most cases, they expect that 25 concurrent users will be OK with the 5 concurrent OPERATIONS allowed, since a WEb application does not dedicate a connection to each user, and the web application will not be doing an operation for each user all the time.|||Hi Douglas, I have your book. :)

So, MS is assuming that 1 out of 5 Web users will have a database operation running? That's a pretty lofting assumption. So, if MS assumed that 1 out of every 10 Web users has a database operation running, then they could have said it serves up to 50 Web users?|||Hope you like the book! It makes a great Stocking Stuffer <g>.

As for the estimate of the number of users, it is just that. Your code might hit the database hard enough that you can only support 10 concurrent users, or you might be able to get 40.

Here is a link to a document that explains the Workload Governor.

how many connection sqlexpress supports

I see this question a lot, so I thought I would go ahead and post the answer here.

Q: How many connections does SQL Server Express support?

A: Unlike MSDE, SQL Server Express does not limit connections. SQL Server Express supports:

1 gb RAM (note the machine can have more memory, but 1gb will be used by SQL Express) 1 processor (again, the machine can have more, but just 1 proc will be used by SQL Express) 4 gb database size (note, there can be multiple databases, but none of them individually can be more than 4 gb)

Hope this helps,

Thanks< MJ

Is it right that only 5 database users can connect to SQL Server express 2005 engine at the same time?

How many concurrent connections support SQL Server 2005?

Hi folks,
That is the question: how many concurrent connections support Microsoft SQL Server 2005?

Thanks in advance,
Javier.That depends on how liquid is your check book, the baseline license is per server processor and I have seen 32 way servers running SQL Server. Hope this helps.|||That depends on your hardware and database activity. I've gotten command timeouts on our development server with just 4 threads beating on it. OTOH, at my previous job we had an Oracle server with some serious hardware behind it (12 GB RAM, 24 64 bit processors) did just fine with over 1,000 active connections. Other departments used SQL Server in fairly high stress environments successfully. (Although I've heard that 32 processor Intel boxs can be fragile.)|||

sorry for not answering directly on the question , but just needed to comment on

12 GB RAM, 24 64 bit processors

Oh my - never been close to such a monster !!!

While I have no numbers to contribute with - this whole discussion really is a reminder on the fact that open connections do cost - and for scalability applications should release their connection to the connection pool (i.e oConn.Close) ASAP

Friday, March 9, 2012

how long before sleeping connections disappear

Using SS2000 SP4. How long does it take after a user logs out before their
"sleeping connection" in EM/Current Activity/Process Info disappears? Is
there a way short of rebooting or stopping/starting services to get it to
disappear sooner?
Thanks,
--
Dan D.Hello,
The inactive connections will be removed from SQL Server based on the
application time out setup in appllication layer. Sleeping status doesnt
mean that status is orphan
connection, because most of the time if the process wait for a user Input
or waiting for a lock will be in sleeping mode. It can go for Running
status any time.
Take a look into the below URL:-
http://support.microsoft.com/kb/Q137983
Thanks
Hari
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.|||The connections are held until the application closes them. Many
applications use connection pooling so that closed connections are pooled
for reuse. These will disappear after a short period, IIRC 30-60 seconds.
--
Hope this helps.
Dan Guzman
SQL Server MVP
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.|||These connections are persisting longer than that. Maybe the application has
changed the timeout. Thanks.
--
Dan D.
"Dan Guzman" wrote:
> The connections are held until the application closes them. Many
> applications use connection pooling so that closed connections are pooled
> for reuse. These will disappear after a short period, IIRC 30-60 seconds.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> > Using SS2000 SP4. How long does it take after a user logs out before their
> > "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> > there a way short of rebooting or stopping/starting services to get it to
> > disappear sooner?
> >
> > Thanks,
> > --
> > Dan D.
>|||Interesting article. Thanks.
--
Dan D.
"Hari Prasad" wrote:
> Hello,
> The inactive connections will be removed from SQL Server based on the
> application time out setup in appllication layer. Sleeping status doesnt
> mean that status is orphan
> connection, because most of the time if the process wait for a user Input
> or waiting for a lock will be in sleeping mode. It can go for Running
> status any time.
> Take a look into the below URL:-
> http://support.microsoft.com/kb/Q137983
> Thanks
> Hari
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> > Using SS2000 SP4. How long does it take after a user logs out before their
> > "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> > there a way short of rebooting or stopping/starting services to get it to
> > disappear sooner?
> >
> > Thanks,
> > --
> > Dan D.
>
>

how long before sleeping connections disappear

Using SS2000 SP4. How long does it take after a user logs out before their
"sleeping connection" in EM/Current Activity/Process Info disappears? Is
there a way short of rebooting or stopping/starting services to get it to
disappear sooner?
Thanks,
Dan D.
Hello,
The inactive connections will be removed from SQL Server based on the
application time out setup in appllication layer. Sleeping status doesnt
mean that status is orphan
connection, because most of the time if the process wait for a user Input
or waiting for a lock will be in sleeping mode. It can go for Running
status any time.
Take a look into the below URL:-
http://support.microsoft.com/kb/Q137983
Thanks
Hari
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.
|||The connections are held until the application closes them. Many
applications use connection pooling so that closed connections are pooled
for reuse. These will disappear after a short period, IIRC 30-60 seconds.
Hope this helps.
Dan Guzman
SQL Server MVP
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.
|||These connections are persisting longer than that. Maybe the application has
changed the timeout. Thanks.
Dan D.
"Dan Guzman" wrote:

> The connections are held until the application closes them. Many
> applications use connection pooling so that closed connections are pooled
> for reuse. These will disappear after a short period, IIRC 30-60 seconds.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
>
|||Interesting article. Thanks.
Dan D.
"Hari Prasad" wrote:

> Hello,
> The inactive connections will be removed from SQL Server based on the
> application time out setup in appllication layer. Sleeping status doesnt
> mean that status is orphan
> connection, because most of the time if the process wait for a user Input
> or waiting for a lock will be in sleeping mode. It can go for Running
> status any time.
> Take a look into the below URL:-
> http://support.microsoft.com/kb/Q137983
> Thanks
> Hari
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
>
>

how long before sleeping connections disappear

Using SS2000 SP4. How long does it take after a user logs out before their
"sleeping connection" in EM/Current Activity/Process Info disappears? Is
there a way short of rebooting or stopping/starting services to get it to
disappear sooner?
Thanks,
--
Dan D.Hello,
The inactive connections will be removed from SQL Server based on the
application time out setup in appllication layer. Sleeping status doesnt
mean that status is orphan
connection, because most of the time if the process wait for a user Input
or waiting for a lock will be in sleeping mode. It can go for Running
status any time.
Take a look into the below URL:-
http://support.microsoft.com/kb/Q137983
Thanks
Hari
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.|||The connections are held until the application closes them. Many
applications use connection pooling so that closed connections are pooled
for reuse. These will disappear after a short period, IIRC 30-60 seconds.
Hope this helps.
Dan Guzman
SQL Server MVP
"Dan D." <DanD@.discussions.microsoft.com> wrote in message
news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
> Using SS2000 SP4. How long does it take after a user logs out before their
> "sleeping connection" in EM/Current Activity/Process Info disappears? Is
> there a way short of rebooting or stopping/starting services to get it to
> disappear sooner?
> Thanks,
> --
> Dan D.|||These connections are persisting longer than that. Maybe the application has
changed the timeout. Thanks.
--
Dan D.
"Dan Guzman" wrote:

> The connections are held until the application closes them. Many
> applications use connection pooling so that closed connections are pooled
> for reuse. These will disappear after a short period, IIRC 30-60 seconds.
> --
> Hope this helps.
> Dan Guzman
> SQL Server MVP
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
>|||Interesting article. Thanks.
--
Dan D.
"Hari Prasad" wrote:

> Hello,
> The inactive connections will be removed from SQL Server based on the
> application time out setup in appllication layer. Sleeping status doesnt
> mean that status is orphan
> connection, because most of the time if the process wait for a user Input
> or waiting for a lock will be in sleeping mode. It can go for Running
> status any time.
> Take a look into the below URL:-
> http://support.microsoft.com/kb/Q137983
> Thanks
> Hari
> "Dan D." <DanD@.discussions.microsoft.com> wrote in message
> news:04CB0892-63B1-4B6F-8E7F-5E5581A73563@.microsoft.com...
>
>