30.06.2013 Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

Performance Tuning with SQL Server Dynamic Management Views

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Listing 2.3: Who is connected?<br />

Chapter 2: Connections, Sessions and Requests<br />

This particular query provides the IP address and name of the machine from which<br />

the connection is being made, to a given <strong>SQL</strong> <strong>Server</strong> instance, the name of the program<br />

that is connecting, and the number of open sessions for each connection. This query,<br />

in our environment, is limited to workstation-class clients only. However, you can<br />

easily manipulate the WHERE clause of the statement to fit the naming conventions of<br />

the hardware in your environment.<br />

I find this to be extremely useful information in several ways. It lets you see which<br />

middle-tier servers are connecting to your server, and how many sessions each one of<br />

them has, which is very helpful when you are trying to help your developers debug<br />

application or connectivity issues. It lets you see if anyone is using SSMS to connect to<br />

your instance.<br />

From these results, I would immediately review the possibility of an issue relating to<br />

the Helpsofton 2on 2 application, at address 63.3.83.240, as it is a workstation-class box<br />

generating 24 connections on software I know does not require such activity. Likewise, I<br />

43

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!