我可以在示例代码项目中使用此连接到我的SQL Server 2008开发者服务例外:SQL连接字符串来命名实例
<add name="ApplicationServices" connectionString="data source=.\SQLSERVER2008;Integrated Security=SSPI;Initial Catalog=RSINET.MVC" providerName="System.Data.SqlClient"/>
,我得到的错误是这样的:
验证实例名称是否正确,以及SQL Server配置为允许远程连接。
我正在使用.NET提供程序?
亚光
处理连接字符串时需要考虑的另一个好习惯是包含ApplicationName参数。见http://johnnycoder.com/blog/2006/10/24/take-advantage-of-application-name/ – 2009-10-20 22:26:20