作者pyrochlore (患得患失)
看板C_Sharp
标题[求救]SQL Server 2005 Express无法远端连线
时间Sat Apr 19 00:03:33 2008
※ [本文转录自 Database 看板]
作者: pyrochlore (患得患失) 看板: Database
标题: [求救]SQL Server 2005 Express无法远端连线
时间: Sat Apr 19 00:01:55 2008
大家好
我的电脑Window XP SP2
灌了VS2005 以及 sql server 2005 express
可以从远端用SQL server management express连线
并做资料库的修改
可是要用ASP.NET程式从别的主机对这台主机作资料存取
总是出现
An error has occurred while establishing a connection to the server. When
connecting to SQL Server 2005, this failure may be caused by the fact that
under the default settings SQL Server does not allow remote connections.
(provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)
网路上有人提到连线字串中的Data Source要写成
xxx.xxx.xxx.xxx\SQLEXPRESS
试了也是没用
在命令提示字元输入net start | findstr /i sql後
出现SQL Server <SQLEXPRESS> 以及 SQL Server Browser
所以服务应该有开启
输入netstat -a 有出现
TCP xxxx:ms-sql-s xxxx:0 LISTENING
所以1433 port 应该是有在听
到底是甚麽问题阿??
麻烦有经验的版友救一下吧
已经弄了一个礼拜了...
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.128.120.94
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 220.128.120.94
1F:推 huge:不打ip,打domainName试试 04/19 01:00
2F:→ pyrochlore:谢谢 改成domain name後错误讯息大致相同 04/19 01:29
3F:→ pyrochlore:除了最後provider: Named Pipes Provider, error: 40 04/19 01:30
4F:→ pyrochlore:Could not open a connection to SQL Server 04/19 01:31
5F:→ teyou:正常来说 MANAGEMENT STUDIO可以连 网站应该也没问题吧.. 04/19 01:44
6F:→ pyrochlore:对阿 所以真的觉得很奇怪...@@ 04/19 01:58