Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Setup / October 2005

Tip: Looking for answers? Try searching our database.

Failed connections to remote 2k SQL Server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
James Vickers - 25 Oct 2005 08:50 GMT
Hi Everyone,

I have a SQL Server 2k running SP4 installed on a Windows 2k3 server. It has
two named instances, because the server also runs Veritas Backup Exec, which
itself, installs an instance of SQL Server to log it's actions. This server
is remotely managed by myself.

When I use enterprise manager on the server, all is fine, both as
registering under the server name, and the server IP address, using the
format of:

x.x.x.x\instance_name.

I am logging in as SA, with a password that I have verified, many, many,
times.

However,

When I try to register the server in Enterprise Manager remotely (with SP4
applied), I cannot gain a connection. On both networks, port 1433 is open. On
the network hosting the SQL Server, I have allowed 1433-1437 for both TCP and
UDP access to the SQL Server's IP through it's firewall. On my network, I
have access to any host over port 1433, and already have other external SQL
Servers (not managed by me) registered successfully. I have checked the SQL
server's network utility, and client network utility, and ensured that they
are using TCP/IP over port 1433.

I have run a netsh diag iphost connect to the server over port 1433, which
succeeds. If I try and connect without using a named instance, it connects,
and errors to tell me to use a named instance! When I try and connect with a
named instance, i.e. x.x.x.x\named_instance it waits for about 2 minutes,
then says that the server does not exist, or access denied - I know the login
details are correct, and I know the server IP is correct - given that it
errors without a named instance, I assume that it is connecting.

Is there anything that I am missing?, I'm afraid that my level of knowledge
with SQL Server is now exhausted!

Any help would be much appreciated.

Best regards,

James Vickers,
me@jamesvickers.com
Sue Hoegemeier - 28 Oct 2005 01:53 GMT
It could be a port issue - that would be my first guess. The
default instance (no instance name) will use the default
port of 1433. Check to see what ports your instances are
actually listening on - you can find it in the SQL log at
start up, from the Server network utilities (check the
properties for TCP/IP), from the registry in the
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL
Server\<InstanceName>\MSSQLServer\SuperSocketNetLib\Tcp
key.
If you aren't using a static port and are going through a
firewall, you need to open up UDP 1434 for SQL Server name
resolution for the named instance.
The following articles have more information:
INF: TCP Ports Needed for Communication to SQL Server
Through a Firewall
http://support.microsoft.com/?id=287932
How to use static and dynamic port allocation in SQL Server
2000
http://support.microsoft.com/?id=823938

-Sue

>Hi Everyone,
>
[quoted text clipped - 40 lines]
>James Vickers,
>me@jamesvickers.com
James Vickers - 28 Oct 2005 08:26 GMT
Sue,

Thanks for taking the time to reply to my post. I have checked, the instance
that I want to connect to is running on 1433, and the instance that I don't
want to connect to is running on 4527 - I assume the default port used by
Veritas for their backup software.

I have also double checked the firewall, it is open on TCP & UDP ports
1433-1437.

Anything else it coule be?

Jamie

> It could be a port issue - that would be my first guess. The
> default instance (no instance name) will use the default
[quoted text clipped - 62 lines]
> >James Vickers,
> >me@jamesvickers.com
Sue Hoegemeier - 28 Oct 2005 15:02 GMT
Jamie,
Could be several other things. Can you ping the server
remotely? Can you telnet to 1433? Is TCP/IP protocol enabled
on both the client and server?
What's the exact error you get when you can't connect?

-Sue


>Sue,
>
[quoted text clipped - 76 lines]
>> >James Vickers,
>> >me@jamesvickers.com
James Vickers - 28 Oct 2005 16:39 GMT
Sue,

I don't want to sound rude, as I appreciate your help - but have read my
first post?

Eveything in IP is fine, I can connect, it just that when I do with a named
instance it hangs and does not register! In answer to your questions, yes I
can all those things.

I get, after about 5 minutes of inactivity, a message that says that the SQL
Server does not exist, or access is denied - even though, if I connect to it
without a named instance, it replies to tell me that I need to define a named
instance, and I can telnet into on 1433.

Jamie.

> Jamie,
> Could be several other things. Can you ping the server
[quoted text clipped - 85 lines]
> >> >James Vickers,
> >> >me@jamesvickers.com
Sue Hoegemeier - 28 Oct 2005 19:14 GMT
There are protocol differences when connecting on the server
itself vs across a network.
Connectivity issues are different through named instances
and default instances.
Try an creating an alias.
Then try all steps in the following:
Potential causes of the "SQL Server does not exist or access
denied" error message
http://support.microsoft.com/?id=328306

-Sue

>Sue,
>
[quoted text clipped - 101 lines]
>> >> >James Vickers,
>> >> >me@jamesvickers.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.