Solved

How do i test my remote sql server connection?

Posted on 2010-11-12
4
558 Views
Last Modified: 2012-06-21
How do i test my remote  sql server connection  ?, i have ip address and port number.
( Like ping utility).  os is windows xp
0
Comment
Question by:Varshini
  • 2
4 Comments
 
LVL 7

Expert Comment

by:50cal
ID: 34122373
If you just want to test connection's to the port/ip of the server/machine you could try the command line
telnet ip.of.sql.server port

50cal.
0
 
LVL 12

Expert Comment

by:NormanMaina
ID: 34122694
from the command prompt:

OSQL -S SERVERNAME -U USERNAME -p password

or
 (if you using intergrated security to connect to sql server)

OSQL - S SERVERNAME - E
0
 
LVL 11

Expert Comment

by:louisreeves
ID: 34122945
Here is a tool which i found on a Dell Management Console CD. You can test for anykind of connection you like. IT will work with SQL and much more. it is called troubleshoot.msi. IT is a general tool to troupleshooot any kind of connection issue. you have to rename the file from .PDF to MSI. It work very well and DELL also has great support.
0
 
LVL 12

Accepted Solution

by:
NormanMaina earned 500 total points
ID: 34126406
were you successful?

50cal's idea of using Telnet is very useful if you want to test if two machines can communicate through a certain port - this is because some posts may be blocked by firewall etc

You can mix with using OSQL or SQLCMD(for sql server 2005 onwards) to check if you can actually connect to an instance of SQL Server using some credentials either integrated security or through mixed mode authentication using sql server log ins.
For OSQL to work you need to have an instance of sql server in both machines being tested.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

Hi all, It is important and often overlooked to understand “Database properties”. Often we see questions about "log files" or "where is the database" and one of the easiest ways to get general information about your database is to use “Database p…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 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

20 Experts available now in Live!

Get 1:1 Help Now