作者regionbbs (小朱)
看板Visual_Basic
标题Re: [.NET] SQL Server资料库连线问题T_T
时间Tue May 3 21:01:47 2011
资料库随着程式走,但 SQL Server Express 没有啊?
依你的描述,你应该是用 SQL Server Express,你的测试用电脑可能没有安装。
所以请在测试用电脑安装,并且确认 instance name 为 SQLEXPRESS,不然你就
要修改你的连线字串,以指向正确的 SQL Server Express instance。
※ 引述《catjimmy (cat)》之铭言:
: 目前小弟在自己的电脑上使用Visual Studio2010将程式建置成功没有问题也可使用
: ,然後我将Project中的Debug资料夹复制到一台测试用的电脑上执行exe档,却发现
: 会跳出错误
: "a network-related or instance-specific error occurred while establishing
: a connection to SQL server. The server was not found or was not accessible.
: Verify that the instance name is correct and that SQL Server is configured
: to allow remote connections. (Provider: SQL Network Interfaces, error:26 -
: Error Locating Server/Instance Specified)."
: Google了一下却发现都是调教我自己本机的部分,但我所使用的方法是直接在方案总管
: 新增一个资料库,这样不是应该是资料库随着程式走吗? 应该不是远端连线吧? 我该如
: 何解决呢,请指点迷津T_T
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.38.234.250