My window application works fine on my computer but when I install it on another computer a network-related error occurred…
I’m using sql server 2005, I have store the backup of the database, when i run it, it flags an error.
I’m using visual studio 10, C#,sql sever 2005
Error 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)""
When this happens it means that the program cannot connect to SQL Server with information you provided.
If for example you are trying to connect
my-server\sqlexpress, usually you have one of this issues:my-serverin your network!my-server.my-serverfrom the network. You can check this usingpingcommand.my-serveris notsqlexpress(case-insensitive).TCP/IPprotocol for your installation instance of SQL Server in “Sql Server Configuration Manager”.TCP/IP.Consider this a checklist, and start from the beginning. Check them one by one. And I hope that you find the problem.