SqlConnection.ConnectionString 参数参考
来源:互联网 发布:360云盘 mac 版本下载 编辑:程序博客网 时间:2024/06/06 04:04
Name | Default | Description |
---|---|---|
Application Name | The name of the application, or '.Net SqlClient Data Provider' if no application name is provided. | |
AttachDBFilename -or- extended properties -or- Initial File Name | The name of the primary file, including the full path name, of an attachable database. The database name must be specified with the keyword 'database'. | |
Connect Timeout -or- Connection Timeout | 15 | The length of time (in seconds) to wait for a connection to the server before terminating the attempt and generating an error. |
Current Language | The SQL Server Language record name. | |
Data Source -or- Server -or- Address -or- Addr -or- Network Address | The name or network address of the instance of SQL Server to which to connect. | |
Encrypt | 'false' | When true, SQL Server uses SSL encryption for all data sent between the client and server if the server has a certificate installed. Recognized values are true, false, yes, and no. |
Initial Catalog -or- Database | The name of the database. | |
Integrated Security -or- Trusted_Connection | 'false' | When false, User ID and Password are specified in the connection. When true, the current Windows account credentials are used for authentication. Recognized values are true, false, yes, no, and sspi (strongly recommended), which is equivalent to true. |
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), dbmslpcn (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 (Not recommended. To maintain a high level of security, it is strongly recommended that you use the Integrated Security or Trusted_Connection keyword instead.). | |
Persist Security Info | 'false' | When set to false or no (strongly recommended), 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. Recognized values are true, false, yes, and no. |
User ID | The SQL Server login account (Not recommended. To maintain a high level of security, it is strongly recommended that you use the Integrated Security or Trusted_Connection keyword instead.). | |
Workstation ID | the local computer name | The name of the workstation connecting to SQL Server. |
The following table lists the valid names for connection pooling values within the ConnectionString. For more information about connection pooling, see
Name | Default | Description |
---|---|---|
Connection Lifetime | 0 | When a connection is returned to the pool, its creation time is compared with the current time, and the connection is destroyed if that time span (in seconds) exceeds the value specified by Connection Lifetime. This is useful in clustered configurations to force load balancing between a running server and a server just brought online. A value of zero (0) causes pooled connections to have the maximum connection timeout. |
Connection Reset | 'true' | Determines whether the database connection is reset when being drawn from the pool. For Microsoft SQL Server version 7.0, setting to false avoids making an additional server round trip when obtaining a connection, but you must be aware that the connection state, such as database context, is not being reset. |
Enlist | 'true' | When true, the pooler automatically enlists the connection in the creation thread's current transaction context. Recognized values are true, false, yes, and no. |
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. |
Pooling | 'true' | When true, the SQLConnection object is drawn from the appropriate pool, or if necessary, is created and added to the appropriate pool. Recognized values are true, false, yes, and no. |
- SqlConnection.ConnectionString 参数参考
- SqlConnection.ConnectionString 参数参考
- SqlConnection.ConnectionString 属性
- SqlConnection.ConnectionString 属性
- SqlConnection.ConnectionString属性
- C# SqlConnection-ConnectionString用法
- 转载MSDN中的SqlConnection.ConnectionString
- 整理MSDN中的SqlConnection.ConnectionString 属性
- [转]整理MSDN中的SqlConnection.ConnectionString 属性
- 整理MSDN中的SqlConnection.ConnectionString 属性
- 整理MSDN中的SqlConnection.ConnectionString 属性
- 整理MSDN中的SqlConnection.ConnectionString 属性
- 整理MSDN中的SqlConnection.ConnectionString 属性
- 整理MSDN中的SqlConnection.ConnectionString 属性
- Connectionstring
- ConnectionString
- .net中SqlConnection中连接字符串 ConnectionString 中的关键字值的有效名称
- sqlconnection
- http://blog.csdn.net/gotoidea/archive/2004/08/03/59894.aspx
- 请小陈尽快将我们自己的Blog网站建立起来
- 获取Sql服务器列表 (C#)
- Discoverer is quite a good tool.
- 对架构设计的想法
- SqlConnection.ConnectionString 参数参考
- asdasdd
- 游戏开发之键盘控制类:GameAction_
- 学习C++时候写的一个简单Array类
- Excel编程
- 游戏开发之输入控制类:InputManager_
- 在DLL中显示对话框,要用传进来的窗口句柄为父窗口,该怎样实现,
- 应聘DELL的技术支持工程师
- 编程初学者n部曲,Reading...Coding ....Compiling....Linking....Runing....Then ..oh.Debuging....