Vista connectionstring




















Sets the language used for database server warning or error messages. The language name can be characters or less. The name or network address of the instance of SQL Server to which to connect. To force a protocol, add one of the following prefixes: np: local , tcp: local , lpc: local Beginning in. If both instance name and port number are not present, the default database instance is used. NET Framework application will be connected. If the value of the Network key is specified, the prefixes "tcp:" and "np:" should not be specified.

Note: You can force the use of TCP instead of shared memory, either by prefixing tcp: to the server name in the connection string, or by using localhost. For more information, see Connection String Syntax. Beginning in. Otherwise, the connection attempt will fail. The name of the failover partner server where database mirroring is configured. If the value of this key is "", then Initial Catalog must be present, and its value must not be "". The server name can be characters or less.

If you specify a failover partner but the failover partner server is not configured for database mirroring and the primary server specified with the Server keyword is not available, then the connection will fail. If you specify a failover partner and the primary server is not configured for database mirroring, the connection to the primary server specified with the Server keyword will succeed if the primary server is available.

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. The maximum number of connections that are allowed in the pool. Valid values are greater than or equal to 1. Values that are less than Min Pool Size generate an error. The minimum number of connections that are allowed in the pool.

Valid values are greater than or equal to 0. Zero 0 in this field means no minimum connections are initially opened. Values that are greater than Max Pool Size generate an error. When true , an application can maintain multiple active result sets MARS. When false , an application must process or cancel all result sets from one batch before it can execute any other batch on that connection.

Recognized values are true and false. Possible values are Yes and No , True and False or 1 and 0. The network library used to establish a connection to an instance of SQL Server. If you do not specify a network and you use a local server for example, ". Size in bytes of the network packets used to communicate with an instance of SQL Server.

The packet size can be greater than or equal to and less than or equal to The password for the SQL Server account logging on. Not recommended. The password must be characters or less. 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. Sets the blocking period behavior for a connection pool. See PoolBlockingPeriod property for details. When the value of this key is set to true, any newly created connection will be added to the pool when closed by the application.

In a next attempt to open the same connection, that connection will be drawn from the pool. Connections are considered the same if they have the same connection string. Different connections have different connection strings. The value of this key can be "true", "false", "yes", or "no". Controls connection association with an enlisted System. Transactions transaction. After detaching, additional requests on the connection are performed in autocommit mode. The System. Current property is not checked when executing requests while the transaction is active.

After the transaction has ended, additional requests are performed in autocommit mode. If the system ends the transaction in the scope of a using block before the last command completes, it will throw InvalidOperationException. Explicit Unbind causes the connection to remain attached to the transaction until the connection is closed or an explicit SqlConnection.

The arguments ADO supports are as follows. After you set the ConnectionString property and open the Connection object, the provider may alter the contents of the property, for example, by mapping the ADO-defined argument names to their equivalents for the specific provider. The ConnectionString property automatically inherits the value used for the ConnectionString argument of the Open method, so you can override the current ConnectionString property during the Open method call.

Duplicates of an argument in the ConnectionString property are ignored. The last instance of any argument is used. Connection Object ADO. Skip to main content. This browser is no longer supported. Isolated Storage If it is set to true the database placed in isolated storage.

Transaction Mode On, Off, or ignore for how the connection should treat transactions. Default is On. Compatibility Mode Legacy, Normal, or Strict for how the connection should handle syntax compatibility. By default, the DataDirectory variable will be expanded as follow: For applications placed in a directory on the user machine, this will be the app's.

The following example creates a VistaDBConnection and sets the ConnectionString property before opening the connection. See Also. Send Feedback. Database open mode.



0コメント

  • 1000 / 1000