Results 1 to 5 of 5

Thread: MS-SQL port in sql server

  1. #1
    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.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    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.

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    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.

  4. #4
    Join Date
    Apr 2008
    Posts
    2,005

    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 .

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    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.

Similar Threads

  1. set minecraft server on port 25565
    By gameitall in forum Networking & Security
    Replies: 1
    Last Post: 29-05-2011, 12:56 AM
  2. Replies: 3
    Last Post: 28-10-2010, 06:46 AM
  3. HP MediaSmart Server and eSATA port
    By The*Conqueror in forum Networking & Security
    Replies: 4
    Last Post: 18-08-2010, 12:58 AM
  4. How to open port 3101 on my server running on SBS
    By Aienstaien in forum Networking & Security
    Replies: 3
    Last Post: 23-09-2009, 10:12 AM
  5. SQL Server ODBC Port Filtering on a DMZ
    By ReddogCA in forum Windows Server Help
    Replies: 0
    Last Post: 30-01-2008, 03:49 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,596,472.77928 seconds with 16 queries