Groups | Blog | Home
all groups > sql server connect > july 2004 >

sql server connect : Unable to connect to sql server remotely


SqlJunkies User
7/18/2004 10:21:10 PM

please help me in following matter

iam facing the same problem when i try to connect to sql remotely i.e.

Unable to connect to server (name of server)
Server: Msg 17, Level 16, State 1
[Microsoft][ODBC SQL Server Driver][DBNETLIB] SQL Server
does not exist or access denied.

but please tell me how to verify that port is listening or not ?

when i try with following command from dos prompt

ISQL -Stcp:ServerNameHere -Usa -Ppassword -Q"select @@version"

I receive the reply like this :

DB-Library: Unable to connect: SQL Server is unavailable
or does not exist. Unable to connect: SQL Server does not exist or network
access denied.Net-Library error 10061: ConnectionOpen (Connect()).

now i dont know how to listen to sql please give me detail procedure to solve this problem





---
Posted using Wimdows.net NntpNews Component -

Hari Prasad
7/19/2004 4:02:24 PM
Hi,

Do the below:-

1. Create Alias to SQL server from your machine using CLIEN NETWORK UTILITY,
specifying TCP/IP as protocol, IP Address and Port number.

2. After creating the Alias use this server name to connect to SQL Server.

How to check the port is working, execute below from command prompt of ur
machine - provide ip address of SQL Server machine

TELNET ipaddress portnumber

eg:

TELNET 10.10.2.33 1433


--
Thanks
Hari
MCDBA
[quoted text, click to view]
supports Post Alerts, Ratings, and Searching.

kevmc NO[at]SPAM online.microsoft.com
7/19/2004 10:03:14 PM
The error 10061 means that the connection was refused. This usually means :

1.) the server isn't listening on TCP/IP. Check the SQL Errorlog to verify
this.
or run : netstat -an from a DOS prompt to verify that the server is
listening on 1433.

2.) your client is connecting to the wrong server. Could be a WINS or DNS
issue. So, your client may be connecting to another computer that is not
running SQL. SQL is a Winsock application, so it needs to be listening on
a socket for the client to establish the connection.


Thanks,

Kevin McDonnell
Microsoft Corporation

This posting is provided AS IS with no warranties, and confers no rights.


Tom Kamps
7/23/2004 1:43:13 AM




*** Sent via Developersdex http://www.developersdex.com ***
Tom Kamps
7/23/2004 1:43:17 AM
Hi,

I've got the same problem. I was trying to connect from win2000 server
to NT4.0 server with ODBC. First this didn't work and got this message :
SQL Server
does not exist or access denied.

After that I changed both administrater accounts to the same password
and then I could connect to the database.

But..I need to connect to the database with an ASP.NET webpage. And from
the web I still get the message : SQL Server does not exist or access
denied.

The sql server is set to accept both windows and sql accounts.

Does anybody have a solution for this ?

Greetings,
Tom




*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button