Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 connection error

Author  Topic 

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-12 : 17:59:54
I am trying to connect to another sql server from one sql server getting below error


TITLE: Connect to Server
------------------------------

Cannot connect to server.

------------------------------
ADDITIONAL INFORMATION:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=53&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-12 : 19:17:13
See this: http://weblogs.sqlteam.com/tarad/archive/2008/05/23/60609.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-13 : 13:56:01
Tried all possibilties still throwing same error

We have two servers
production and DR server(planning to set up logshipping)

In both servers sql server std edition is installed, both are in same workgroup and no firewall and all ports are open

I am trying connect DR server from Prod server thru SSMS. Getting below error

DR server ip is pinging in prod server and
1433 port is connected
Remote connections are allowed in DR server and network ports are enabled. In both servers SQL Server services running under local system account.

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)
trying connect thru windows authentication
tried with servername in SSMS
ip
ip,1433
servername,1433

I am able to connect to DRSSMS in DR server with window auth
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-13 : 15:14:44
Are you sure 1433 is the listening port? We don't use 1433 here.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-13 : 17:41:10
1433 is listening
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-13 : 17:56:14
If HostName,PortNumber doesn't work, then you need to contact your network administrator as that's the bare basics. You've got a network issue.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-16 : 12:35:17
I found one strange thing.....In prod server ssms i tried to connect dr sql server using DR server ip, it connected but servername is prod servername...same thing happens in DR server also

DR IP(sql server 9.00.1399-prod servername\adminstrator)

and it is not in started symbol(green)
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-16 : 12:57:39
I don't understand your last post.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page

MuadDBA

628 Posts

Posted - 2009-11-16 : 13:16:40
Are you saying that your DR server internally has the same name as your prod server, or are you saying that that your DNS is storing the same IP for both servers? Wehn I look in SSMS the stuff in () is my Domain name and the windows account I use to connect to it. It's possible your DR server is not on the domain properly? Or maybe you do not have a domain set up?

How aer you attempting to make this connection to the 2 servers...via a linked server connection, or something else?
Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-16 : 14:08:42
I have two servers (server1 and server2) in same workgroup.

IN both the servers SQL Server is installed and remote conn and network protocals are enabled. checked 1433 port also

Now I want to connect to Server2 SQL Server from Server1 SSMS remotly-thru windows authentication
Throwing above error.
When I tried with Server2 ip it connected but showing server1 name
Server2 IP(sql server 9.00.1399-<server1 name>\adminstrator)


quote:
Originally posted by tkizer

I don't understand your last post.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."

Go to Top of Page

laddu
Constraint Violating Yak Guru

332 Posts

Posted - 2009-11-16 : 14:15:32
DR server has different name
How to check whether DNS is storing the same IP (Only I know that both servers are in same workgroup)
Servers are in same workgroup not in domain
I am attempting to connect DR SQL server remotely form Prod server SSMS thru windows authentication.

quote:
Originally posted by crazyjoe

Are you saying that your DR server internally has the same name as your prod server, or are you saying that that your DNS is storing the same IP for both servers? Wehn I look in SSMS the stuff in () is my Domain name and the windows account I use to connect to it. It's possible your DR server is not on the domain properly? Or maybe you do not have a domain set up?

How aer you attempting to make this connection to the 2 servers...via a linked server connection, or something else?

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2009-11-16 : 14:47:04
I'm not sure that log shipping is going to work without a domain. The SQL Server service on both servers needs to be able to connect to the other server.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog

"Let's begin with the premise that everything you've done up until this point is wrong."
Go to Top of Page
   

- Advertisement -