DB2Connection Members
The following tables list the members exposed by the DB2Connection class.
Public Constructors
puName | Description |
---|---|
![]() |
Overloaded. Initializes a new instance of the DB2Connection class. |
Public Properties
Name | Description |
---|---|
![]() |
Sets the connection property to allow the
association of statements to a workload manager on the data server. Data server restrictions:
|
![]() |
Gets or sets the wait time in seconds before a command that consists of chained SQL statements is terminated. |
![]() |
Gets or sets a Boolean value that indicates whether data caching is being used. |
![]() |
Gets or sets a Boolean value that indicates whether caching of the user libraries (*USRLIBL libraries) is enabled for all connections to Db2 for IBM i in the same connection pool. |
![]() |
Gets a Boolean value that indicates whether chaining is active. |
![]() |
Gets or sets the string that contains the client accounting information. |
![]() |
Gets or sets the string that contains the client application name. |
![]() |
Gets or sets the client correlation token name on Db2 for z/OS Version 11 servers in new function mode (NFM). |
![]() |
Gets or sets the string that contains the client user ID. |
![]() |
Gets or sets the string that contains the name of the client workstation. |
![]() |
Gets or sets the string that is used to open a database connection. |
![]() |
Gets or sets a value that limits the amount of time that an application waits for a connection. |
![]() |
Gets the IContainer interface object that contains the Component class object. |
![]() |
Gets the name of the current database or the database that is used after a connection is opened. |
![]() |
Gets the name of the current data source or the data source that is used after a connection is opened. |
![]() |
Enables the use of default and unassigned indicators as parameters. |
![]() |
Gets or sets the type of precision to use.
The acceptable values are as follows:
|
![]() |
Gets or sets the value that indicates whether the provider retrieves results sets from Informix database server UDRs as a ReturnValue parameter. |
![]() |
Gets or sets the value that indicates whether the provider reruns failed statements. |
![]() |
Gets a string that contains the build version of the server to which the client is connected. |
![]() |
Gets a string that contains the functional level of the Db2 for z/OS or LUW server to which the client is connected. |
![]() |
Gets a string that contains the major version of the server to which the client is connected. |
![]() |
Gets a string that contains the minor version of the server to which the client is connected. |
![]() |
Gets a string that contains the revision version of the server to which the client is connected. |
![]() |
Gets a string that contains the type of server to which the client is connected. |
![]() |
Gets a string that contains the version of the server to which the client is connected. |
![]() |
Gets or sets the ISite interface object of the Component class object. |
![]() |
Gets the current state of the connection. |
![]() |
Specifies whether the system naming mode or the SQL naming mode is used for a connection to the Db2 for IBM i server. |
Public Methods
Name | Description |
---|---|
![]() |
Marks the beginning of a chain of insert, update, and delete statements to be sent to the database server. |
![]() |
Overloaded. Begins a transaction at the database. |
![]() |
Changes the current database associated with an open DB2Connection. |
![]() |
Closes the connection to the database. This is the preferred method of closing any open connection. |
![]() |
Creates and returns a DB2Command object associated with the DB2Connection. |
![]() |
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
![]() |
Overloaded. Releases the resources used by the Component. |
![]() |
Drops the DTD registered with the database. |
![]() |
Drops the schema registered with the database. Data server restrictions:
|
![]() |
Marks the end of a chain of insert, update, and delete statements to be sent to the database server. |
![]() |
Enlists in the specified transaction as a distributed transaction. |
![]() |
Overloaded. Enlists in the specified transaction. |
![]() |
Overloaded. Determines whether two Object instances are equal. |
![]() |
Gets the DTD registered with the database. |
![]() |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
![]() |
Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
![]() |
Gets the Type of the current instance. |
![]() |
Overloaded. Returns a DataTable with metadata for the data source associated with this DB2Connection instance. |
![]() |
Gets the schema registered with the database. Data server restrictions:
|
![]() |
Obtains a lifetime service object to control the lifetime policy for this instance. |
![]() |
Opens a connection to a database with the property settings specified by the ConnectionString . |
![]() |
Registers the DTD with the database. |
![]() |
Overloaded. Registers the schema with the
database, including the URLs for the files containing the XML document
property data, and a URL for the file containing the XML schema properties
document. Data server restrictions:
|
![]() ![]() |
Indicates that the DB2Connection object pool can be released when the last underlying connection is released. |
![]() |
Returns a String that represents the current Object. |
![]() |
Returns formatted sqlerrmc data if the parameter is true, and raw, unformatted sqlerrmc data if the parameter is false. |
Public Events
Name | Description |
---|---|
![]() |
Adds an event handler to listen to the Disposed event on the component. |
![]() |
Occurs when the IBM Data Server Provider for .NET sends a warning or an informational message. |
![]() |
Occurs when the state of the connection changes. |
Protected Properties
Name | Description |
---|---|
![]() |
Gets a value that indicates whether the Component is currently in design mode. |
![]() |
Gets the list of event handlers that are attached to this Component. |
Protected Methods
Name | Description |
---|---|
![]() |
Overloaded. Overridden. Releases the resources used by the DB2Connection. |
![]() |
Overridden. Allows an Object to attempt to free resources and perform other cleanup operations
before the Object is reclaimed by garbage collection. In C# and Microsoft Visual C++, finalizers are expressed using destructor syntax. |
![]() |
Returns an object that represents a service provided by the Component or by its Container. |
![]() |
Creates a shallow copy of the current Object. |