连接 sql server 2008 报错:(provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
松月 2012-12-17 10:53:13 System.Data.SqlClient.SqlException: 在与 SQL Server 建立连接时出现与网络相关的或特定于实例的错误。未找到或无法访问服务器。请验证实例名称是否正确并且 SQL Server 已配置为允许远程连接。 (provider: 命名管道提供程序, error: 40 - 无法打开到 SQL Server 的连接)
在 PLS.DAO.Account.PLS_Account_PaymentDao.GetPLS_Account_PaymentData(PLS_Account_PaymentEntity PLS_Account_PaymentEntity, PLS_UserInfoEntity UserInfoEntity) 位置 D:\PLS\DAO\PLS.DAO.Account\PLS_Account_PaymentDao.cs:行号 51
在 PLS.BIZ.Account.PLS_Account_PaymentBiz.GetPLS_Account_PaymentData(PLS_Account_PaymentEntity PLS_Account_PaymentEntity, PLS_UserInfoEntity UserInfoEntity) 位置 D:\PLS\Biz\PLS.BIZ.Account\PLS_Account_PaymentBiz.cs:行号 45
在 WS.Biz.BackFcmPayData.Update_Payment_Status(String xmlData, PLS_UserInfoEntity UserInfoEntity)
在 WS.Biz.BackFcmPayData.WriteBackFcmPayData(String fcmxml)
在 PLS_FCM_Service.FCMService.WriteBackFcmPayData(String fcmxml) 位置 D:\PLS\PLS_FCM_Service\FCMService.asmx.cs:行号 37
在网上看到了很多遇到同样问题的人,都说是要改连接字符串,但我怎么改就是连不上,这是我的连接字符串:
Data Source=169.254.202.80;Initial Catalog=PLSDB;Persist Security Info=True;User ID=sa;Password=111
放心这个地址是ping的通的!
数据库是sql server2008 注意这里是2008的,实例名是:MSSQLSERVER