webconfig中配置各种数据库的连接字符串
来源:互联网 发布:mac os双系统安装教程 编辑:程序博客网 时间:2024/05/16 12:37
一、在appSettings配置
<appSettings>
<!--SQL Server-->
<!--<add key="SQLString" value="Database=MyData;Data Source=NICKYAN-PC;User Id=sa;Password=123123;"/>
<add key="DataDAL" value="RedGlovePermission.SQLServerDAL" />-->
<!--My SQL-->
<add key="SqlString" value="host=192.168.0.222;userid=root;password=123456;database=hr_db"/>
<add key="DataDAL" value="RedGlovePermission.MySqlDAL" />
<!--Oracle-->
<add key="SqlString" value="Data Source=NICKYAN-PC;User Id=PB_DB_USER;Password=123123;Integrated Security=no"/>
<add key="DataDAL" value="RedGlovePermission.OracleDAL" />
<!--OleDB-->
<add key="SQLString" value="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=RedGlovePermission.Web\DB\MyData.mdb;Persist Security Info=False"/>
<add key="DataDAL" value="RedGlovePermission.OleDBDAL" />
</appSettings>
二、在connectionStrings配置
<!--SQL Server-->
<add name="ApplicationServices" connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|\aspnetdb.mdf;User Instance=true" providerName="System.Data.SqlClient"/>
<add name="ConnStr" connectionString="Database=DIS;Server=192.168.1.148;User ID=sa;Password=sa;" providerName="System.Data.SqlClient"/>
<add name="ConnStr" connectionString="Database=DIS;Server=192.168.1.148;User ID=sa;Password=sa;" providerName="System.Data.SqlClient"/>
<!--My SQL-->
<add name="conStr" connectionString="server=localhost;uid=root;pwd=123;database=test"providerName="System.Data.SqlClient"/>
<!--Oracle-->
<add name="TYRCC_connstr" connectionString="Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=china-007cb92da) (PORT=1521))(CONNECT_DATA=(SERVICE_NAME=TYNHRK)));User ID=tytc;Password=123456;Unicode=True" providerName="System.Data.OracleClient" />
<add name="ConnectionString" connectionString="Data Source=TYNHRK;User ID=tytc;Password=123456.;Unicode=True" providerName="System.Data.OracleClient" />
<add name="ConnectionString2" connectionString="Expression: test_dataConnectionString" providerName="System.Data.SqlClient" />
阅读全文
0 0
- webconfig中配置各种数据库的连接字符串
- webconfig中配置各种数据库的连接字符串
- webconfig中配置各种数据库的连接字符串
- webconfig 配置连接数据库字符串
- ASP中各种数据库的连接字符串
- JAVA中连接各种数据库的连接字符串
- 各种数据库的连接字符串
- 各种数据库的连接字符串
- web_在webconfig中写连接字符串
- 各种数据库中字符串的连接(转)
- 连接各种数据库的连接字符串(java)
- JDBC连接各种数据库的连接字符串
- webconfig配置连接池
- ADO连接各种数据库的字符串全集
- 各种数据库的ado连接字符串
- C#与各种数据库的连接字符串
- 各种数据库的ado连接字符串
- 【转】JDBC连接各种数据库的字符串
- 杂记——杨辉三角
- Eclipse 中 Tomcat启动卡100%(preparing launch delegate...)
- Linux之OOM-killer
- Django 调试时提示: In order to allow non-dict objects to be serialized
- teamViewer与Myeclipse的冲突
- webconfig中配置各种数据库的连接字符串
- git中出现“non-fast-forward”errors时的终极解决方案
- 给你的TextView中的部分文字加入没有下划线的超链接
- 如何动态加载图片
- 在yii的URL中,如何隐藏动态文件夹?
- git-svn使用教程
- Error:Cause: https://downloads.gradle.org/distributions/gradle
- Duplicate entry '0' for key 'PRIMARY'
- android popupwindow 的使用方法()