您的位置:首页 > 理论基础 > 计算机网络

网址收藏-各种数据库的连接字符串-http://www.connectionstrings.com/

2007-05-15 09:11 621 查看
http://www.connectionstrings.com/

这是俺所关注的内容:

Using Connection Pooling
The connection pooling service will create a new pool if it can't find any existing pool that exactly match the new connections connection string properties. If there is a matching pool a connection will be recycled from that pool.
Data Source=myOracleDB;User Id=myUsername;Password=myPassword;Min Pool Size=10;Connection Lifetime=120;Connection Timeout=60;Incr Pool Size=5;Decr Pool Size=2;
实际中有看到这种写法的:
.NET与ORACLE的连接方式
(OracleConnection(.NET))采用共享池链接,连接字符串。(写在web.config)
<add key="strConn" value="User ID=fjdms;Data Source=fjdms_lyj;Password=XXXX;Max Pool Size=1000;pooling=true;" />

从ORACLE网站上看到的连接字符串《通过 Visual Studio 调试 Oracle PL/SQL 》:http://www.oracle.com/technology/global/cn/obe/odt/debugging/debugging.htm

string constr = "User Id=hr; Password=hr; Data Source=ORCL; enlist=false; pooling=false";
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐