﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Mark Greenbaum  / Find the Port a Connection is Using / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 08:20:49 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>thank you.</description><pubDate>Mon, 12 Jul 2010 04:37:32 GMT</pubDate><dc:creator>BIG1362000</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Its an advantage that it shows cpu_time and memory_usage of the connected sessions. Its easy to narrow down few issues.Cheers</description><pubDate>Fri, 09 Jul 2010 19:29:09 GMT</pubDate><dc:creator>m--S3qU3L</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>[quote][b]BIG1362000 (7/9/2010)[/b][hr]Hi,I tried it on several 2005 databases. All of them returned 0 rows.Is it normal ?Thanks.[/quote]In the script, I exclude port 1433 (WHERE c.local_tcp_port &amp;lt;&amp;gt; 1433) which is the default listener for SQL Server. You will get 0 rows in the result if you haven't got connections using a port other than the default.</description><pubDate>Fri, 09 Jul 2010 05:57:43 GMT</pubDate><dc:creator>MG-148046</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Hi,I tried it on several 2005 databases. All of them returned 0 rows.Is it normal ?Thanks.</description><pubDate>Fri, 09 Jul 2010 02:43:44 GMT</pubDate><dc:creator>BIG1362000</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>[quote][b]Twinsoft SME (7/7/2010)[/b][hr]SQL Server should only be using 1 open port? :w00t:[/quote]Actually - Microsoft recommends multiple ports to help balance the "listening" load on busy servers. From  http://support.microsoft.com/kb/294453 - "To increase the performance of the SQL Server server to simultaneously process more connection requests, additional TCP ports to listen on can be added".</description><pubDate>Thu, 08 Jul 2010 06:37:25 GMT</pubDate><dc:creator>MG-148046</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Nice script. Very useful information. Thanks.</description><pubDate>Thu, 08 Jul 2010 00:39:13 GMT</pubDate><dc:creator>Atif-ullah Sheikh</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Too bad these views don't exist on SQL2K</description><pubDate>Wed, 07 Jul 2010 21:27:45 GMT</pubDate><dc:creator>pparsons</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Nice article.  Thanks for sharing.</description><pubDate>Wed, 07 Jul 2010 14:49:28 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>I think it would if useful to also add the client_tcp_port from the connections DMV, because your SQL Server should only be using 1 open port? :w00t:</description><pubDate>Wed, 07 Jul 2010 07:55:35 GMT</pubDate><dc:creator>Rick.Cornell.SME</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>fluppe_be,sp_who in SQL 2008 uses a system view in the resource database so I think you will need to write your own version of sp_who or search for one that meets your needs. There are quite a few available that use the DMVs and you would be able to easily add the port to any of them.</description><pubDate>Wed, 07 Jul 2010 06:57:44 GMT</pubDate><dc:creator>MG-148046</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Thanks for sharing this info.</description><pubDate>Wed, 07 Jul 2010 04:50:18 GMT</pubDate><dc:creator>shyamalshukla</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Thanks for you replyI was used to use the SP_WHO function, but this does not show the portsAny way around possible?</description><pubDate>Wed, 07 Jul 2010 01:56:46 GMT</pubDate><dc:creator>fluppe_be</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>It won't work in SQL 2000.  The query uses Dynamic Management Views which were only introduced in SQL Server 2005.Excellent article that I'm sure  will come in handy at some point.  Thanks for sharing.</description><pubDate>Wed, 07 Jul 2010 01:47:56 GMT</pubDate><dc:creator>Chris Houghton</dc:creator></item><item><title>RE: Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Works great in SQL 2005!However, i have several sites still running on SQL 2000, the script is not working in there (i think the table does not exist yet). Do you have a similar script for SQL 2000? Would be great!</description><pubDate>Wed, 07 Jul 2010 01:43:18 GMT</pubDate><dc:creator>fluppe_be</dc:creator></item><item><title>Find the Port a Connection is Using</title><link>http://www.sqlservercentral.com/Forums/Topic948303-2735-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/Administration/70469/"&gt;Find the Port a Connection is Using&lt;/A&gt;[/B]</description><pubDate>Tue, 06 Jul 2010 23:35:28 GMT</pubDate><dc:creator>MG-148046</dc:creator></item></channel></rss>