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.
| Author |
Topic |
|
mountvesuvius
Starting Member
1 Post |
Posted - 2007-06-20 : 03:03:04
|
| I'm having a strange problem with this but I know (and admit) that the problem is on my PC and nowhere else. My firewall was causing a problem because I was unable to PING the database server, switching this off gets a successful PING immediately. The most useful utility to date is running netstat -an in the command window. This illustrates all the connections that are live and ports that are being listed to. I can establish a connection both by running telnet sql5.hostinguk.net 1433 andsqlcmd -S sql5.hostinguk.net -U username -P password See below: Active ConnectionsProto Local Address Foreign Address StateTCP 0.0.0.0:25 0.0.0.0:0 LISTENINGTCP 0.0.0.0:80 0.0.0.0:0 LISTENINGTCP 0.0.0.0:135 0.0.0.0:0 LISTENINGTCP 0.0.0.0:443 0.0.0.0:0 LISTENINGTCP 0.0.0.0:445 0.0.0.0:0 LISTENINGTCP 0.0.0.0:1026 0.0.0.0:0 LISTENINGTCP 0.0.0.0:1433 0.0.0.0:0 LISTENINGTCP 81.105.102.47:1134 217.194.210.169:1433 ESTABLISHEDTCP 81.105.102.47:1135 217.194.210.169:1433 ESTABLISHEDTCP 127.0.0.1:1031 0.0.0.0:0 LISTENINGTCP 127.0.0.1:5354 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51114 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51201 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51202 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51203 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51204 0.0.0.0:0 LISTENINGTCP 127.0.0.1:51206 0.0.0.0:0 LISTENINGUDP 0.0.0.0:445 *:*UDP 0.0.0.0:500 *:*UDP 0.0.0.0:1025 *:*UDP 0.0.0.0:1030 *:*UDP 0.0.0.0:3456 *:*UDP 0.0.0.0:4500 *:*UDP 81.105.102.47:123 *:*UDP 81.105.102.47:1900 *:*UDP 81.105.102.47:5353 *:*UDP 127.0.0.1:123 *:*UDP 127.0.0.1:1086 *:*UDP 127.0.0.1:1900 *:* Both these utilities show as establishing a connection in netstat so I am able to connect the database server every time, this worked throughout yesterday and has continued this morning.The problem is when I attempt to use SQL Server Management Studio. When I attempt to connect to tcp:sql5.hostinguk.net, 1433 nothing shows in netstat at all. There is an option to encrypt the connection in the connection properties tab in management studio, when I enable this I do get an entry in netstat -an, see below: TCP 81.105.102.47:1138 217.194.210.169:1433 TIME_WAITTCP 81.105.102.47:1139 217.194.210.169:1433 TIME_WAITTCP 81.105.102.47:1140 217.194.210.169:1433 TIME_WAIT Amost as if it's trying the different ports but you get this time_wait thing. The error message is more meaningful and hopefull because I get:A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: SSL Provider, error: 0 - The certificate chain was issued by an authority that is not trusted.) (.Net SqlClient Data Provider)I would expect this as the DNS has not been advised to encrypt the conection.This is much better than the : Login failed for user 'COX10289'. (.Net SqlClient Data Provider) that I get, irrespective of whether I enter a password or not.This is on a XP machine trying to connect to the remote webhosting company via the internet.I can ping the server I have enabled shared memory and tcp/ip in protocols, named pipes and via are disabledI do not have any aliases set upNo I do not force encryption I wonder if you have any further suggestions to this problem? |
|
|
rmiao
Master Smack Fu Yak Hacker
7266 Posts |
Posted - 2007-06-20 : 11:03:50
|
| I'll create an alias with ip address and port number, then connect to sql server with alias in ssms. |
 |
|
|
|
|
|