Re: Mysterious Port of SQL Server not shown by netstat
From: Abhishek Srivastava (abhishek-srivastava_at_nospam.net)
Date: 03/19/04
- Next message: Bart Holthuijsen: "Re: Question about table variables."
- Previous message: Karen Comber: "Modulus 3"
- In reply to: Stefan Delmarco [MSFT]: "Re: Mysterious Port of SQL Server not shown by netstat"
- Next in thread: Tibor Karaszi: "Re: Mysterious Port of SQL Server not shown by netstat"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Mar 2004 16:28:30 +0530
Hello Stefan,
> Make sure clients are connecting on TCP through Query Analyser and
> specifying the SQL Server as: "TCP:<SQLServerNameorIP>,1433" (for
example,
My query analyzer failed to connect to my sql server when I said
TCP:NTA21178,1433. The error message was SQL Server does not exist or
access denied. Message 17, Level 16 State 1
> For "service name" output use:
> netstat -ap TCP | findstr ms-sql-s
> For "numeric" output use:
> netstat -anp TCP | findstr 1433
I tried these commands. They return nothing.
> Have a look at the following file to see the mapping between service name
> and port:
> %SYSTEMROOT%\system32\drivers\etc\services
I have 2 sets of such enteries.
ms-sql-s 1433/tcp #Microsoft-SQL-Server
ms-sql-s 1433/udp #Microsoft-SQL-Server
ms-sql-m 1434/tcp #Microsoft-SQL-Monitor
ms-sql-m 1434/udp #Microsoft-SQL-Monitor
(I tried the above commands with ms-sql-s, ms-sql-m, 1433, 1434
options... but still the commands returned no results)
Even the TCPView program from sys internals does not show 1433 or 1434
being used.
OK so now I am convinced that I am not using TCP How can I configure TCP
and test whether its configured on my machine or not?
The network client utiltity shows me that two protocols are enabled on
my computer. TCP/IP and Named Pipes.
I have succesfully queried my sql server from a remote computer. Now
named pipes are for interprocess communication they cannot do remoting
between machines.
So how can the second computer query my machine unless TCP/IP was
enabled. However if TCP/IP is enabled why isn't it appear in any of the
utilities.
Thank you so much for your help and patience.
regards,
Abhishek.
Stefan Delmarco [MSFT] wrote:
> A couple of things to check:
>
> Make sure clients are connecting on TCP through Query Analyser and
> specifying the SQL Server as: "TCP:<SQLServerNameorIP>,1433" (for example,
> TCP:SQL01,1433).
> If this fails then yoru SQL Server is not listening on 1433.
>
> The output from netstat can either display well known ports by their
> "service name" or their numerical representation. "ms-sql-s" and 1433 are
> the same thing:
>
> For "service name" output use:
> netstat -ap TCP | findstr ms-sql-s
>
> For "numeric" output use:
> netstat -anp TCP | findstr 1433
>
> Download TCPView from http://www.sysinternals.com to easily see what ports
> sqlservr.exe has bound to. Note that TCPView.exe only uses the "name"
> output (i.e. if sqlservr.exe is listening on 1433 you won't see 1433 as the
> port, only ms-sql-s).
>
> Have a look at the following file to see the mapping between service name
> and port:
> %SYSTEMROOT%\system32\drivers\etc\services
>
> You'll find:
> ms-sql-s 1433/tcp #Microsoft-SQL-Server
> ms-sql-s 1433/udp #Microsoft-SQL-Server
>
>
- Next message: Bart Holthuijsen: "Re: Question about table variables."
- Previous message: Karen Comber: "Modulus 3"
- In reply to: Stefan Delmarco [MSFT]: "Re: Mysterious Port of SQL Server not shown by netstat"
- Next in thread: Tibor Karaszi: "Re: Mysterious Port of SQL Server not shown by netstat"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|