I am trying to connect to ms sql server but I get error: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
This is in Windows form application. This application works correct and connects to MSSQL Server in other all other PCs but not in mine. This server is in local network. So I guess problem is not in MSSQL Server.
Before 2 months this application worked on my PC as well, as I coded it with visual studio 2008 and was debugging, all worked great. After that I have installed Visual studio 2012 and MSSQL express 2005 and 2008. So these changes have been made on my PC. Now I go back to edit my application and it cannot connect anymore.
I have searched the web and found that these servers 2005 and 2008 could be the problem. I have removed them both from my PC. Now I have Visual studio 2008 and Visual studio 2012. Could it be the problem for my connection to SQL server? There is no problem with connection to oracle or My SQL.
I cannot remove Visual Studio 2012 as I have code with it. Please help.