Vs2012 문제 해결

2000 단어 2012
1. web.config 데이터베이스 연결


<connectionStrings>
    <!-- data source=192.168.1.245;  --> 
    <!--<add name="QcInfoEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.1.245;initial catalog=liantou;user id=liantou;password=liantou;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />-->


    <!-- data source=PC2014041314\SQLEXPRESS;-->
    <add name="QcInfoEntities" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=PC2014041314\SQLEXPRESS;initial catalog=liantou;user id=liantou;password=liantou;MultipleActiveResultSets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
    <!-- 1.server= ;database= ; uid= ;pwd= "/>-->
    <add name="RightConnString" connectionString="Server=PC2014041314\SQLEXPRESS;Database=liantouRights_DB;Uid=liantou;Pwd=liantou" providerName="System.Data.SqlClient" />
    <!--<add name="DefaultConnection" providerName="System.Data.SqlClient" connectionString="Data Source=(LocalDb)\v11.0;Initial Catalog=aspnet-ORong.Admin-20130308114129;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnet-ORong.Admin-20130308114129.mdf" />-->
    <add name="DefaultConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\aspnet-ORong.Admin-20130308114129.mdf;Initial Catalog=aspnet-ORong.Admin-20130308114129;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient" />
  </connectionStrings>

좋은 웹페이지 즐겨찾기