我有一台服务器上运行的Gui与同一台机器上的IIS和SQL数据库。用于访问不同机器上的SQL服务器的IIS
我在webconfig中有这个连接字符串。
Data Source=localhost\SQLEXPRESS;Initial Catalog=XYZDB;Integrated Security=True
现在我想在不同的服务器上访问另一个数据库,我认为这将只是把我为“localhost”更改为机服务器的名称,但不工作。
任何想法,我应该如何去这样做..
任何帮助是极大的赞赏
谢谢。
错误消息:
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)
什么是错误信息? – 2010-10-12 19:06:57