连接字符串(web.config)

data source=ip;

initial catalog=db1;

user id=sa;

password=***

<connectionStrings>
    <add name="DefaultConnection" connectionString="Data Source=(LocalDb)\v11.0;AttachDbFilename=|DataDirectory|\aspnet-MvcMusicStore-20130928021208.mdf;Initial Catalog=aspnet-MvcMusicStore-20130928021208;Integrated Security=True"
      providerName="System.Data.SqlClient" />
    <add name="MusicStoreDB" connectionString="Data Source=(localdb)\v11.0; Initial Catalog=MusicStoreDB-20130929160340; Integrated Security=True; MultipleActiveResultSets=True; AttachDbFilename=|DataDirectory|MusicStoreDB-20130929160340.mdf"
      providerName="System.Data.SqlClient" />
</connectionStrings>

 

posted @ 2017-11-07 19:10  fight139  阅读(190)  评论(0编辑  收藏  举报