P
Paul Robinson
Hi,
I am having problems connecting to a local SQLServer2000 database using
ADO.NET. I am using a 3rd party assembly which I have no control over, and
the database connection string is hardcoded into the application (nice).
The connection string looks like this:
"UID=john;password=johnspassword;Initial Catalog=thedb;Data Source=local"
I do have the database setup on the local machine, but when trying to
connect I get the error:
"SQL Server does not exist or access is denied"
Now, I have tried to connect to the database using Query Analyser and it
will not connect to a server called "local" but it WILL connect to a server
called "(local)".
Because I can't change the connection string I need to get it connected
using "local". It works on one machine but not the test machine I have. As
far as I can tell everything is set up the same.
I have tried setting up various aliases for "local" using the SQL Server
Client Network Utility, but still having no success. I have set up a named
pipe and also a TCP/IP alias for "local" but I still can't get the
connection to work.
Can anyone help with this?
Thanks!
I am having problems connecting to a local SQLServer2000 database using
ADO.NET. I am using a 3rd party assembly which I have no control over, and
the database connection string is hardcoded into the application (nice).
The connection string looks like this:
"UID=john;password=johnspassword;Initial Catalog=thedb;Data Source=local"
I do have the database setup on the local machine, but when trying to
connect I get the error:
"SQL Server does not exist or access is denied"
Now, I have tried to connect to the database using Query Analyser and it
will not connect to a server called "local" but it WILL connect to a server
called "(local)".
Because I can't change the connection string I need to get it connected
using "local". It works on one machine but not the test machine I have. As
far as I can tell everything is set up the same.
I have tried setting up various aliases for "local" using the SQL Server
Client Network Utility, but still having no success. I have set up a named
pipe and also a TCP/IP alias for "local" but I still can't get the
connection to work.
Can anyone help with this?
Thanks!