以下连接字符串一切正常。EF代码优先使用SQL Server Express 2012连接字符串
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient" />
我最近在我的本地机器上测试安装了SQL Server 2012 Express,但我不能进行连接。这是使用Windows身份验证的连接字符串。
<add name="ApplicationServices" connectionString="Data Source=.\SQLEXPRESS;Initial Catalog=testdb;Integrated Security=SSPI;" providerName="System.Data.SqlClient" />
我是谁尽了最大努力搜索论坛共小白,但我无法推迟从部分“类似的标题问题,”我的解决方案。任何帮助是极大的赞赏。
我很抱歉花了这么长时间来标记这是我的解决方案。我跟踪另一个爱好(如果你已婚的话,是老大),现在刚刚回来了。我的连接字符串被覆盖,发布后我无法抓住它。 – Budoray 2013-05-07 17:43:04