Linux中国  设为主页
 收藏本站
 
当前位置: > 首页 ->数据库应用 ->其他数据库 ->数据库连接字符串大全
·罗维数据库营销的网络化 改善客户体验 ·精华推荐 数据库系统专用词汇集锦之二 ·轻松七个步骤帮助你来顺利开发数据仓库 ·SQL语句基础学习 帮你明了数值数据类型 ·SQL语句基础学习 从子表里如何删除数据 ·SQL语句基础学习 子选择如何来合并查询 ·逐行扫描 为你讲解几个基本SQLPLUS命令 ·精华推荐 数据库系统专用词汇集锦之一 ·数据库基础知识帮你分析何为ASP数据库
  相关分类: 
Access
DB2
Mysql
Oracle
PostgreSQL
SQL Server
Sybase
其他数据库
  站内搜索: 
热门文章排行
热门文章排行 数据库连接字符串大全(06-03)
海量数据库的查询优化及分页算法方案(04-23)
sql年月日计算方法(06-03)
有关 Eclipse 运行命令行参数大全 (04-23)
sql 经典语句(06-03)
精采文章排行
精采文章排行 分析数据库备份过程中九种易出现的情(06-29)
第七届Teradata数据仓库峰会在上海召(06-29)
SQL语句游标For.Loop与Open.Close比(06-29)
渗透测试中攻与守之数据库系统渗透简(06-29)
容灾可捍卫数据安全 确保信息即时恢(06-29)
 

数据库连接字符串大全

作者:Webmaster   来源:Linuxdby.com   点击:   日期:2007-06-03 [收藏] [投稿]

  IE是否经常中毒?推荐您

Enlist 'true' When true, the pooler automatically enlists the connection in the creation thread's current transaction context.
Initial Catalog
-or-
Database
  The name of the database.
Integrated Security
-or-
Trusted_Connection
'false' Whether the connection is to be a secure connection or not. Recognized values are 'true', 'false', and 'sspi', which is equivalent to 'true'.
Max Pool Size 100 The maximum number of connections allowed in the pool.
Min Pool Size 0 The minimum number of connections allowed in the pool.
Network Library
-or-
Net
'dbmssocn' The network library used to establish a connection to an instance of SQL Server. Supported values include dbnmpntw (Named Pipes), dbmsrpcn (Multiprotocol), dbmsadsn (Apple Talk), dbmsgnet (VIA), dbmsipcn (Shared Memory) and dbmsspxn (IPX/SPX), and dbmssocn (TCP/IP).
The corresponding network DLL must be installed on the system to which you connect. If you do not specify a network and you use a local server (for example, "." or "(local)"), shared memory is used.
Packet Size 8192 Size in bytes of the network packets used to communicate with an instance of SQL Server.
Password
-or-
Pwd
  The password for the SQL Server account logging on.
Persist Security Info 'false' When set to 'false', security-sensitive information, such as the password, is not returned as part of the connection if the connection is open or has ever been in an open state. Resetting the connection string resets all connection string values including the password.
Pooling 'true' When true, the SQLConnection object is drawn from the appropriate pool, or if necessary, is created and added to the appropriate pool.
User ID   The SQL Server login account.
Workstation ID the local computer name The name of the workstation connecting to SQL Server.


Note
Use ; to separate each property.
If a name occurs more than once, the value from the last one in the connection string will be used.
If you are building your connection string in your app using values from user input fields, make sure the user can't change the connection string by inserting an additional property with another value within the user value.
  •  SQL Server 2005
    •  SQL Native Client ODBC Driver

      •  Standard security:
        "Driver={SQL Native Client};Server=Aron1;Database=pubs;UID=sa;PWD=asdasd;"


      •  Trusted connection:
        "Driver={SQL Native Client};Server=Aron1;Database=pubs;Trusted_Connection=yes;"
        Equivalents
        Integrated Security=SSPI equals Trusted_Connection=yes
      •  Prompt for username and password:
        oConn.Properties("Prompt") = adPromptAlways
        oConn.Open "Driver={SQL Native Client};Server=Aron1;DataBase=pubs;"


      •  Enabling MARS (multiple active result sets):
        "Driver={SQL Native Client};Server=Aron1;Database=pubs;Trusted_Connection=yes;MARS_Connection=yes"
        Equivalents

         如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<

        上一页 1 2 34 5 6 7 8 9 10 11 12 13 14 下一页

        上一篇:SQL分页算法,还可以更好   下一篇:用SQL批量插入数据
  • 文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论

       相关文章:
    ·精华推荐 数据库系统专用词汇集锦之三

       文章评论:(1条)
      
     请留名: 匿名评论   点击查看所有评论 论坛讨论
     

     声明:刊登此文章是为了传递更多信息,文章内容仅供参考,转载请注明出处。