作者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
※ pyrochlore:轉錄至看板 C_Sharp 04/19 00:03
推 okdla:別台主機上先裝一下client版的sql2005 04/19 15:42
推 okdla:如果沒有client版的話,把有裝那台c:\winnt\system32底下的 04/19 15:47
推 okdla:dbnetlib.dll和dtwdblib.dll複製過去.. 04/19 15:52
推 okdla:對你有幫助...(這裡的推文真的有夠慢的,5分鐘才可以一推) 04/19 16:01