Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 752
  • Last Modified:

check if sql port is open

is there any other option other than telnet to see if sql server port is open to another server?
0
25112
Asked:
25112
  • 7
  • 6
  • 2
  • +2
8 Solutions
 
markterryCommented:
netstat.
0
 
markterryCommented:
run>cmd> netstat to see all open ports.
1433 = sql
or maybe you want this:
MS FIX IT
0
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
25112Author Commented:
nertstat tells if the port is open, right?

i want to know if server a can access port 1433 on the sql server (let's call this serverb).. can you do that through netstat?
0
 
leakim971PluritechnicianCommented:
netstat need to be run on the server itslef
go for sqlcmd
or what is your problem with telnet? you don't want to install it (win7/2k8?)
pkgmgr /iu:"TelnetClient"

Open in new window

0
 
leakim971PluritechnicianCommented:
0
 
25112Author Commented:
telnet can be installed by the windows admin only and he is not available for a few days..

1)you gave a link for: Microsoft® SQL Server® 2008 Management Studio Express
how will that help to see if server a can access serverb's port 1433?

2)is pkgmgr /iu:"TelnetClient" a sqlcmd?
0
 
leakim971PluritechnicianCommented:
>how will that help to see if server a can access serverb's port 1433?
Install it on workstation/serverv and try to connect to server a.

>pkgmgr /iu:"TelnetClient" a sqlcmd?
this command install the telnet client on windows 7 & 2k8
but forget it if you don't have admin rights
0
 
leakim971PluritechnicianCommented:
but you may try/run telnet on an other machine...
0
 
25112Author Commented:
C:\Users\jimwe>pkgmgr /iu:"TelnetClient"

C:\Users\jimwe>

did not give any errors.. but nothing else either..

but i tried it and not it works..thanks..
0
 
25112Author Commented:
>>netstat need to be run on the server itslef

so how would you check from netstat

C:\Users\TPBAdmin>netstat

Active Connections

  Proto  Local Address          Foreign Address        State
0
 
leakim971PluritechnicianCommented:
Look for :1433 (local address)
Microsoft Windows [version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Tous droits réservés.

C:\Users\leakim>netstat -na

Connexions actives

 Proto  Local Address          Foreign Address        State
TCP    127.0.0.1:1433         0.0.0.0:0              LISTENING

C:\Users\leakim>

Open in new window

0
 
tangchunfengCommented:
netstat -an|findstr 1433
or
telnet 192.168.1.2 1433
0
 
25112Author Commented:
leakim971/tangchunfeng,

netstat will work only if the local machine is having SSMS installed and opened to a database, right?

with telnet, we will force it to listen and tell us if it can listen.


0
 
25112Author Commented:

also can you help me to read
TCP    127.0.0.1:1433         0.0.0.0:0              LISTENING

is 1433 running on 127.0.0.1, and no one (0.0.0.0) is listening.
0
 
Racim BOUDJAKDJIDatabase Architect - Dba - Data ScientistCommented:
Try SQLPing. It is a free utility that allows you to quickly evaluate your SQL Server instances surface of exposure:

http://www.sqlsecurity.com/Tools/FreeTools/tabid/65/Default.aspx

Hope this helps...
0
 
25112Author Commented:
nice option..

thanks all.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 7
  • 6
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now