Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags: , , , , ,

Sponsored Links



MS-SQL port in sql server

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 03-03-2010
Member
 
Join Date: Dec 2009
Posts: 213
MS-SQL port in sql server

hello sir,
I am using MS-SQL server,a developer asked me suddenly a question regarding the network implementation of SQL server.he asked me- how would I know that the particular instance is running on which port.He is also unaware of this answer and finding the solution.

I don't know also how to do it.please would you help me find out the solution.
Reply With Quote
  #2  
Old 03-03-2010
Praetor's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,937
Finding port in sql server

The database is running in the network environment and which one port is occupied by the instance.There are so many ways to find out the port number of SQL server instance.

1- Using the GUI
2- Check the error log
3- Registry entry
4- Using the extended stored procedure

These are the ways through you can find the port number for running instance of SQL server database.
Reply With Quote
  #3  
Old 03-03-2010
Member
 
Join Date: May 2008
Posts: 1,990
MS-SQL port in sql server

Using the GUI

In SQL Server 2000, The Server Network Utility is available for you to find the port number and on other hand SQL Server 2005 provide you to check the port number using SQL Server Configuration Manager.
Investigate within the SQL Server 2005 Network Configuration and see at the TCP port for the TCP/IP protocol.

These are the basic configuration tools which can be used with both database versions.
Reply With Quote
  #4  
Old 03-03-2010
kelfro's Avatar
Member
 
Join Date: Apr 2008
Posts: 1,976
MS-SQL port in sql server

Using error log :

When you use the error log then you will get an entry tagged in the file as follows -

“Server is listening on [ 'any' <ipv4> 1433].”

The last digits constructed with four numbers is the TCP/IP port number which is currently used by the running instance from where the log error file belongs to.The IP address is also extended .
Reply With Quote
  #5  
Old 03-03-2010
Zecho's Avatar
Member
 
Join Date: May 2008
Posts: 2,267
MS-SQL port in sql server

Using the extended stored procedure

One of the procedure which is created by default in the database for accessing the network information can be used to get the port number of running instance and the name of the procedure is xp_regread.

The code carried by the procedure is as follows-

Code:
DECLARE @tcp_port nvarchar(5)

EXEC xp_regread
@rootkey    =    ‘HKEY_LOCAL_MACHINE’,
@key        =    ‘SOFTWARE\MICROSOFT\MSSQLSERVER\MSSQLSERVER\SUPERSOCKETNETLIB\TCP’,
@value_name    =    ‘TcpPort’,
@value        =    @tcp_port OUTPUT

select @tcp_port
Execute this code within the SQL statement and get the port number of current instance.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "MS-SQL port in sql server"
Thread Thread Starter Forum Replies Last Post
set minecraft server on port 25565 gameitall Networking & Security 1 29-05-2011 01:56 AM
Problems in teaming connectivity of Intel Pro ET Quad port Server and Adapter Hyper V Server Tajdar7 Networking & Security 3 28-10-2010 07:46 AM
KMS Server not listening on port 1688 dukkipati19 Vista Setup and Install 3 17-03-2009 11:52 AM
SQL Server ODBC Port Filtering on a DMZ ReddogCA Windows Server Help 0 30-01-2008 03:49 AM
Missing port types : local port and Standard TCP/IP port programmer_not_admin Windows XP Support 5 28-12-2006 07:38 PM


All times are GMT +5.5. The time now is 05:22 AM.