Oliver Gray wrote:
> where "dbname", "hostname", "username", and "password" are the actual
> database name, hostname, username and password. I get the exception listed
> in the subject line.
10060 is a Winsock error code, meaning that the connection timed out.
That suggests that the host name is completely incorrect, because you're
not even contacting a real host that can reject the connection.
If you're familiar with the TCP protocol, this means the SYN packet is
going out, and no SYN/ACK (or RST) is coming back.
This assumes that there are no firewalls in the way. If that's the
case, then the host name could be correct, but the firewall is dropping
the SYN packet silently. Firewalls often do this for "stealthing" reasons.