We use this same connection string on two other servers with no problems but we are now trying to connect from another server. The error we are getting is
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
We are using .net 2 for our web apps on all these servers. I am able to connect to a sql server 2008 database from this server. Is there some configuration I am missing to get this to work?
royalhale
Member
7 Points
42 Posts
Can't find database by name
Apr 16, 2010 08:24 PM|LINK
We have a sql server 2005 database with a name like server/name. The connection string looks like
<add name="PPDF" connectionString="Data Source=server\name;User Id=id;Password=pwd;Initial Catalog=database"/>
We use this same connection string on two other servers with no problems but we are now trying to connect from another server. The error we are getting is
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)
We are using .net 2 for our web apps on all these servers. I am able to connect to a sql server 2008 database from this server. Is there some configuration I am missing to get this to work?
Thanks
Royal
Royal