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
 SQL Server 2008 Forums
 Other SQL Server 2008 Topics
 Suddenly can't connect remotely to server

Author  Topic 

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 18:36:15
For some odd reason, I cannot seem to connect via Management Studio to my 2008 server. I have not changed any settings on my box nor have i changed anything via MS.

I Don't think it's a firewall issue because i turned the firewall off and still couldn't connect.

Here is my error;

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)

Thanks
rc

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 18:43:04
If its MS SQL 2005

1. Enable remote connections in the surface area scan.
2. Enable TCP/IP

In 2008 MS SQL, enable TCP/IP in MS SQL configuration manager
Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 18:56:35
Thanks for your response.

TCP/IP is enabled. Yet still it will not connect. It is sql2008.

The error number I got was 1231


[url]http://www.microsoft.com/products/ee/transform.aspx?ProdName=Microsoft+SQL+Server&EvtSrc=MSSQLServer&EvtID=1231[/url]

this is what microsoft pointed me to. But i don't quite understand.

Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 19:00:43
How are you trying to connect ?

management studio ?

use

IPAddress,port number(1433)
username
password
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 19:03:29
From that error, I would ask. did you create an account to login and assign the appropriate permissions ?
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-09 : 19:10:50
Try connecting with ServerName,PortNumber. Let us know how that goes.

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

Subscribe to my blog
Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 19:11:25
Yes, I'm connecting via mangement studio.

Everything has been working fine up until this morning when I woke up and tried to login. I tried adding the port number, but it still wouldn't connect. :(

What could have randomly happened while I was asleep? Strange.



Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 19:15:37
quote:
Originally posted by tkizer

Try connecting with ServerName,PortNumber. Let us know how that goes.



Tara, i tried that and it didn't work either. I also tried;

ip,1433\servername
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-09 : 19:20:11
I don't understand what you mean by ip,1433\servername. That isn't a proper way to connect. Are you sure it is listening on 1433 as that's just the default? We don't use 1433.

To verify if you've lost connectivity due to some network issue, telnet to the SQL Server over the port that it is listening on. You must do this on the machine where you are receiving the error and not on the database server.

Here's an example: telnet Server1 28999

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

Subscribe to my blog
Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 19:22:56
Tara,

I tried to Telenet in and I got a "Could not open connection to host on port 1433 : connect failed"

Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 19:23:37
use this ip,1433
instead of ip,1433\servername
Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 19:24:14
quote:
Originally posted by afrika

use this ip,1433
instead of ip,1433\servername




Hey Afrika,

tried that and it also didn't work :(

Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-09 : 19:24:46
quote:
Originally posted by robc

Tara,

I tried to Telenet in and I got a "Could not open connection to host on port 1433 : connect failed"





You will be unable to connect to SQL Server until you can telnet to it. Verify that SQL Server is really listening on port 1433 first.

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

Subscribe to my blog
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 19:25:06
Try what Tkizer said, telnet and see if you get a response.

If not, then your server is not listening on that port
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-09 : 19:25:53
quote:
Originally posted by afrika

Try what Tkizer said, telnet and see if you get a response.

If not, then your server is not listening on that port



Well that's not the only reason why telnet wouldn't work. There are lots of reasons why. We need to eliminate things.

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

Subscribe to my blog
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-09 : 19:40:38
quote:
Originally posted by tkizer

quote:
Originally posted by afrika

Try what Tkizer said, telnet and see if you get a response.

If not, then your server is not listening on that port



Well that's not the only reason why telnet wouldn't work. There are lots of reasons why. We need to eliminate things.

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

Subscribe to my blog




Ok.

I setup MS SQL 2008 last month. Setup was smooth. Still trying to get a hang of the changes

Go to Top of Page

robc
Yak Posting Veteran

60 Posts

Posted - 2008-10-09 : 23:16:44
Well, turns out my hosting provider blocked ports 1433,1434. Took them long enough to respond to me :(

Thank you everyone for your help. It is now working on a different port. :)


Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-10-10 : 12:49:14
Sounds like you need to change hosting providers as this issue shows their lack of knowledge.

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

Subscribe to my blog
Go to Top of Page

helpme
Posting Yak Master

141 Posts

Posted - 2009-02-18 : 14:32:10
Is there a way to tell what ports are available? I'm having the same issue when trying to telnet using port 1433.
Go to Top of Page
   

- Advertisement -