We're running a largely Windows 2000 network with SQL Server 7.0, with SQL
authentication. When we try to connect remotely (via an ISP), we get an
error that says "Cannot generate SSPI Context". Microsoft says a registry
key will fix it, and it does not. We've tried altering the connection string
to say PersistSecurityInfo=FALSE, and it doesn't work. Does anyone have any
ideas how to do this? Certainly SQL can't restrict you to merely connecting
via a LAN.
Here's our connection string:
Provider=sqloledb;
Network Library=dbmssocn;
Data Source=[our server's ip address];
Initial Catalog=[our database];
User ID=[our login];
Password=[our password];
The other property of our setup is MS Proxy Server, with Surrogate Sockets
installed to forward the requests to the SQL Server. The IP we type in is
our external IP address. However we know this works because if we dial out
from an internal machine, we can connect through the proxy but we can't
connect to the SQL server unless the LAN cable is plugged in. If it is
unplugged, we get the SSPI error. We have been able to unplug the cable
after the software starts though.