views:

248

answers:

2

I am running MS SQL Server 2008 on my local machine. I know that the default port is 1433 but some how it is not listening at this port. The SQL is an Express edition.

I have already tried the log, SQL Server Management Studio, registry, and extended stored procedure for finding the port. But, I could not find it. Please help me. Thanks.

+1  A: 

In the ERROLOG log for a line like below. If you don't see it the SQL Server isn't enabled for remote access, or it is just not via TCP. You can change this via the SQL Server Configuration Manager.

Server is listening on [ 192.128.3.2 <ipv4> 1433].
mrdenny
I don't see that log but on the SQL Server Management Studio under Connections "Allow remote connections to this server" is checked. Hence, my understanding is that the remote connection is allowed.
royalGhost
@royal: In addition to 'allow remote connections' you must also enable the TCP protocol. Right now the server is probably only listening NP
Remus Rusanu
+2  A: 

You could also look with a

netstat -abn

It gives the ports with the corresponding application that keeps them open.

Edit: or TCPView.

rslite
Can you let me know under what name is MS SQL Server 2008 is named as an application?
royalGhost
It should be sqlservr.exe (I don't have one to check though).
rslite