码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-11-25 20:31:58      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   io   color   os   sp   数据   on   

  <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>

 

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

标签:des   style   blog   io   color   os   sp   数据   on   

原文地址:http://www.cnblogs.com/zoro-zero/p/4121586.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!