连接字符串 - smarterasp.net

时间:2014-11-16 01:48:27

标签: asp.net .net database deployment connection

任何人都可以帮我吗?我遇到了很多错误。我知道这里可能只是语法错误,但我不确定我是否正确行事。

这是smarterasp给我的连接字符串:&#34; Data Source = SQL5006.Smarterasp.net; Initial Catalog = DB_9B7F44_capstone; User Id = DB_9B7F44_capstone_admin; Password = YOUR-PASSWORD;&#34; < / p>

这是我本地机器上的连接字符串:

<connectionStrings> <add name="d_CapstoneEntities1" connectionString="metadata=res://*/Model1.csdl|res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=WIN-C43BMU8UF5E\SQLEXPRESS;initial catalog=d_Capstone;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" /></connectionStrings>

然后我想出了这个,但我仍然得到错误&#34;不支持关键字:&#39;数据源&#39;。&#34;

<add name="d_CapstoneEntities1" providerName="System.Data.EntityClient" connectionString="Data Source=SQL5006.Smarterasp.net;Initial Catalog=DB_9B7F44_capstone;User Id=DB_9B7F44_capstone_admin;Password=YOUR-PASSWORD;integrated security=True;MultipleActiveResultSets=True;App=EntityFramework;"/></connectionStrings>

我首先使用了EF数据库。

0 个答案:

没有答案