作者ponyrabbit (我是笨蛋阿兔..)
看板Visual_Basic
标题[.NET] 连结SQL2005的error
时间Wed Jun 23 15:48:49 2010
Dim ConnStr As String = "Data Source=AA;Initial Catalog=BB;Persist Security
Info=True;User ID=user1;Password=user1;MultipleActiveResultSets=True"
Dim Conn As New SqlClient.SqlConnection(ConnStr)
Conn.Open()
我的程式停在 Conn.Open()
讯息是写说"可能预设程式中不允许远端连线"
因为资料库是别人家的,但是人家开放我有 read 的权限
我用SQL server management Studio 是可连进去查的
但是写到程式中却会挂掉,请问是为什麽?
很奇怪的是这段CODE先前可以run,後来对方把资料库address 改过之後程式就挂了
(我有改Data Source路径了)
--
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.124.63.2
1F:→ nobody1:TCP/IP or Name Pipe 要检查开了没有 06/23 17:27