Solved

check if sql port is open

Posted on 2011-09-06
17
713 Views
Last Modified: 2012-06-21
is there any other option other than telnet to see if sql server port is open to another server?
0
Comment
Question by:25112
  • 7
  • 6
  • 2
  • +2
17 Comments
 
LVL 6

Accepted Solution

by:
markterry earned 126 total points
ID: 36492545
netstat.
0
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 249 total points
ID: 36492549
0
 
LVL 6

Assisted Solution

by:markterry
markterry earned 126 total points
ID: 36492556
run>cmd> netstat to see all open ports.
1433 = sql
or maybe you want this:
MS FIX IT
0
 
LVL 5

Author Comment

by:25112
ID: 36492675
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
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 249 total points
ID: 36492688
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
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 249 total points
ID: 36492820
0
 
LVL 5

Author Comment

by:25112
ID: 36492907
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
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 249 total points
ID: 36492915
>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
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 82

Expert Comment

by:leakim971
ID: 36492923
but you may try/run telnet on an other machine...
0
 
LVL 5

Author Comment

by:25112
ID: 36492925
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
 
LVL 5

Author Comment

by:25112
ID: 36492929
>>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
 
LVL 82

Expert Comment

by:leakim971
ID: 36492945
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
 
LVL 6

Assisted Solution

by:tangchunfeng
tangchunfeng earned 62 total points
ID: 36493549
netstat -an|findstr 1433
or
telnet 192.168.1.2 1433
0
 
LVL 5

Author Comment

by:25112
ID: 36496040
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
 
LVL 5

Author Comment

by:25112
ID: 36496042

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
 
LVL 23

Assisted Solution

by:Racim BOUDJAKDJI
Racim BOUDJAKDJI earned 63 total points
ID: 36502518
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
 
LVL 5

Author Comment

by:25112
ID: 36542701
nice option..

thanks all.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now