S
Stephen
I'm experiencing a strange problem that has me baffled. I created a
webservice with a webmethod that connects to a remote MS SQL Server:
SqlConnection mySQLConnection = new SqlConnection();
mySQLConnection.ConnectionString="data source=192.168.30.44;
uid=rocky;pwd=raccoon;database=myDatabase";
mySQLConnection.Open();
This code works fine in the Windows app with either SQL Server 7 or
2000. It also works fine in the webservice app with one server, which
happens to be SQL Server 7. It does not work with the other server,
running SQL Server 2000. It generates the error "server does not
exist or access is denied" at mySQLConnection.Open().
I can connect to either database using Enterprise Manager.
Can anybody help?
TIA!
webservice with a webmethod that connects to a remote MS SQL Server:
SqlConnection mySQLConnection = new SqlConnection();
mySQLConnection.ConnectionString="data source=192.168.30.44;
uid=rocky;pwd=raccoon;database=myDatabase";
mySQLConnection.Open();
This code works fine in the Windows app with either SQL Server 7 or
2000. It also works fine in the webservice app with one server, which
happens to be SQL Server 7. It does not work with the other server,
running SQL Server 2000. It generates the error "server does not
exist or access is denied" at mySQLConnection.Open().
I can connect to either database using Enterprise Manager.
Can anybody help?
TIA!