Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase ««12

Find the Port a Connection is Using Expand / Collapse
Author
Message
Posted Thursday, July 08, 2010 6:37 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 9:12 AM
Points: 1,757, Visits: 2,119
Twinsoft SME (7/7/2010)
SQL Server should only be using 1 open port?


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".


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Post #949244
Posted Friday, July 09, 2010 2:43 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 17, 2011 1:34 AM
Points: 2, Visits: 4
Hi,
I tried it on several 2005 databases. All of them returned 0 rows.
Is it normal ?
Thanks.
Post #949783
Posted Friday, July 09, 2010 5:57 AM


SSCommitted

SSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommittedSSCommitted

Group: General Forum Members
Last Login: Today @ 9:12 AM
Points: 1,757, Visits: 2,119
BIG1362000 (7/9/2010)
Hi,
I tried it on several 2005 databases. All of them returned 0 rows.
Is it normal ?
Thanks.


In the script, I exclude port 1433 (WHERE c.local_tcp_port <> 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.


MG

"There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies."
Tony Hoare

"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.

Post #949872
Posted Friday, July 09, 2010 7:29 PM


SSC Veteran

SSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC VeteranSSC Veteran

Group: General Forum Members
Last Login: Tuesday, November 12, 2013 10:53 PM
Points: 290, Visits: 714

Its an advantage that it shows cpu_time and memory_usage of the connected sessions.
Its easy to narrow down few issues.

Cheers


John
Post #950283
Posted Monday, July 12, 2010 4:37 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, February 17, 2011 1:34 AM
Points: 2, Visits: 4
thank you.
Post #950654
« Prev Topic | Next Topic »

Add to briefcase ««12

Permissions Expand / Collapse