作者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
推 huge:不打ip,打domainName試試 04/19 01:00
→ pyrochlore:謝謝 改成domain name後錯誤訊息大致相同 04/19 01:29
→ pyrochlore:除了最後provider: Named Pipes Provider, error: 40 04/19 01:30
→ pyrochlore:Could not open a connection to SQL Server 04/19 01:31
→ teyou:正常來說 MANAGEMENT STUDIO可以連 網站應該也沒問題吧.. 04/19 01:44
→ pyrochlore:對阿 所以真的覺得很奇怪...@@ 04/19 01:58