Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / DB Engine / SQL Server / July 2008

Tip: Looking for answers? Try searching our database.

newbee needs help with trouble-shoot sql server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Danny Ni - 12 Jul 2008 04:31 GMT
Hi,

I use sp_who to look at how many connections are made to our production
server. Normally there are about 300 connections, but sometimes the
connections will jump up rapidly to more than 1000 for several minutes, then
gradually come down to normal again. I need to investigate why this happens,
can someone give me directions on how-to? We are using SQL Server 2005.

TIA
Dan Guzman - 12 Jul 2008 16:29 GMT
> I use sp_who to look at how many connections are made to our production
> server. Normally there are about 300 connections, but sometimes the
> connections will jump up rapidly to more than 1000 for several minutes,
> then gradually come down to normal again. I need to investigate why this
> happens, can someone give me directions on how-to? We are using SQL Server
> 2005.

These symptoms could be due to long-running queries, perhaps due to
blocking.  Do you see blocking in sp_who when the number of connections
jumps?

You might try a Profiler trace of login/logout events and also include batch
and rpc completed events with a duration filter >= 1000.  This might show
the correlation between the connection spike and the activity at the time.

Signature

Hope this helps.

Dan Guzman
SQL Server MVP
http://weblogs.sqlteam.com/dang/

> Hi,
>
[quoted text clipped - 6 lines]
>
> TIA
Roy Harvey (SQL Server MVP) - 12 Jul 2008 16:29 GMT
The first easy step beyond sp_who is to use sp_who2, which provides a
bit more information.  For greater detail, back in SQL Server 2000 and
earlier I would have told you to query master.dbo.sysprocesses.  Now
in 2005 we have three system views that expand on this:
sys.dm_exec_connections, sys.dm_exec_sessions and
sys.dm_exec_requests.  Look them up in the Books On Line and query
them to find out about the connections - who is connecting, from what
machine, running what queries, etc.

Roy Harvey
Beacon Falls, CT

>Hi,
>
[quoted text clipped - 5 lines]
>
>TIA
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.