I have a Gui running on a server with the IIS and the SQL database both on the same machine.
I have this connectionstring in the webconfig.
Data Source=localhost\SQLEXPRESS;Initial Catalog=XYZDB;Integrated Security=True
Now i want to access another database on a different server, i thought it would just take me to change "localhost" to the machine server name, but that is not working.
any idea how should i go about doing this..
Any help is greatly appreciated
Thank you.
Error message:
Exception Details: System.Data.SqlClient.SqlException: 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)