Hi, I am in the process of trying to configure SQL Server 2008 to accept remote connections. I have been through all the documentation I can find and yet when I attempt to connect through management studio I get an error stating that the server could not be found.
Interestingly I can connect through telnet to the remote server via the port that sql server is listening on. In the SQL Server logs I can see the connection attempt. So SQL Server is up and running and listening on the correct port - no firewall blocking it.
It would appear that by default SQL Server is listening on port 50314 by default but management studio attempts to connect on port 1433.Weird.
Server Management Studio = no dice.
Anyone got any ideas? Server is set to allow remote connections - TCP IP is enabled, firewall is off.
Thanks
UPDATE FOR TO CLEAR THINGS UP A BIT
We are seeing the connection attempt when we telnet in on port 50314 in the sql server logs. When we login through management studio we see it attempting connection on port 1433. There is no sign of this connection attempt in the logs.
-
Are you saying that in the SQL Server error log you are seeing the connection attempt by Management Studio? If so, what does the log say about why the connection couldn't be established (it might differ from what SSMS tells you, since if the log is recording the message on the server side, obviously the server could be found)? Are you using a server name, if so have you tried using the IP address instead? And are you 100% certain that SQL Server is in fact listening on port 1433? And also that it is not a named instance? For a named instance you would need to connect to [server name or IP][instance name].
From Aaron Bertrand -
- Make sure the SQL Server Browser Service is on at the remote server as this will make it easier to find it
- Verify that the SQL Server is running on port 1433, if not you'll need to specify
, PORT#after the server name in SSMS - Make sure that the SQL Server is setup to operate on TCP/IP. It may be limited to Named Pipes for example.
- Make sure the SQL Server is setup as the default instance MSSQLSERVER, if not you'll need to specify the
SERVERNAME\INSTANCEin SSMS
djangofan : Also, the "sa" account is disabled by default. If your connecting with mixed-mode auth and the 'sa' user , you still need to enable the user and set its password. Also, you are able to change the port that the SQL instance listens on. You can try that if their is any conflict on port 1433 for some reason. Also, make sure your windows firewall isn't blocking that port.From Nissan Fan -
We had this a couple months ago with our SQL Server 2008 box. The root cause was an issue with the domain account that was binded the SQL server service, somebody changed the password. Try this before attempting the dreaded reboot.
-
I have the same problem. In my case there were two instances on a domain server.
SQL 2000 is the default instance, listening on port 2417.
SQL 2008 is a named instance listening on port 1433.From my desktop, using 2008 SSMS I can connect to the default instance as SERVERNAME without specifying a port. I cannot connect to the named instance as SERVERNAME\INSTANCENAME (yes, remote connections have been enabled) but I CAN connect to the named instance using SERVERNAME\INSTANCENAME,1433 . I find that wierd. Anybody think this is all working as one should expect? Sure beats me why I should have to remember the listening port of every instance I connect to - especially, since the install process, these days, seems to select a random (not 1433) number. ANYBODY KNOW HOW I CAN MAKE PORT NUMBER TRANSPARENT WHEN CONNECTING REMOTELY?
From Hayden Jones
0 comments:
Post a Comment