不同数据库下的web.config中数据库连接字符串

  <connectionStrings>

    <add name="OADBConnectionString" connectionString="Data Source=HONG-PC\SQL2005;Initial Catalog=OADB;User ID=sa;Password=123456" providerName="System.Data.SqlClient" />
    
    <add name="SqlServerConnectionString" connectionString="Data Source=127.0.0.1\sqlserver2008r2;Initial Catalog=Website;Integrated Security=False;User ID=sa;Password=Yk.888888;Connect Timeout=15;Encrypt=False;TrustServerCertificate=False" providerName="System.Data.SqlClient"/>
    
    <add name="OledbConnectionString" connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\access.mdb;Persist Security Info=True" providerName="System.Data.OleDb"/>
    
    <add name="OracleConnectionString" connectionString="DATA SOURCE=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=127.0.0.1)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=WebSite)));PASSWORD=a123456;PERSIST SECURITY INFO=True;USER ID=WebSiteDataDeveloper" providerName="Oracle.DataAccess.Client"/>
  
  </connectionStrings>

 

posted @ 2014-11-25 17:54  大空白纸  阅读(271)  评论(0编辑  收藏  举报