zoukankan      html  css  js  c++  java
  • 数据库连接字符串

    一 SQL Server

    Windows身份验证:

    Data Source=ServerName;Integrated Security=True;

    SQL Server 身份验证:

    Data Source=127.0.0.1;Initial Catalog=dwy_db_test;User ID=user1;password=Ps123321;

    Server=127.0.0.1;database=dwy_db_test;Uid=user1;Pwd=Ps123321;

    其他属性:

    Pooling:确定是否使用连接池。如果值为真的话,连接就要从适当的连接池中获得,或者,如果需要的话,连接将被创建,然后被加入合适的连接池中。其缺省值为真。

            Max Pool Size:(连接池的最大容量):连接池允许的连接数的最大值,其缺省值为100。

           ·Min Pool Size:(连接池的最小容量):连接池允许的连接数的最小值,其缺省值为0。

    Connect Timeout:(连接超时)/Connection Timeout(连接超时):一个到服务器的连接在终止之前等待的时间长度(以秒计),缺省值为15。

    Packet Size:(数据包大小):用来和数据库通信的网络数据包的大小。其缺省值为8192。

    二 Oracle 

    Data Source=192.0.0.112/orcl;Password=fxdv3_hk;User ID=fxdv3_hk

     

    包含所有数据库的连接字符串:https://www.connectionstrings.com/

  • 相关阅读:
    Adobe Acrobat XI Pro破解版 v11.0.10中文版
    linux经典面试题
    P1540 机器翻译(STL 链表)
    P1067 多项式输出 (模拟)
    P1003 铺地毯
    [CF547C] Mike and Foam
    [CF351B] Jeff and Furik
    [CF900D] Unusual Sequences
    [CF568B] Symmetric and Transitive
    [CF893E] Counting Arrays
  • 原文地址:https://www.cnblogs.com/glory0727/p/8971621.html
Copyright © 2011-2022 走看看