DB2eConnection Members


ǥ 168. Public Static (Shared) Methods

Method Description
ReleaseObjectPool Indicates that the DB2e environment handle can be released when the last underlying connection is released.

ǥ 169. Public Instance Constructors

Constructor Description
DB2eConnection() Overloaded. Initialize a new instance of the DB2eConnection class.
DB2eConnection(string) Overloaded. Initialize a newInitialize a new instance of the DB2eConnection class with a specified connection string.

ǥ 170. Public Instance Properties

Property Description
ConnectionString Gets or sets the string used to open a database.
ConnectionTimeout Gets or sets the time to wait while trying to establish a connection before terminating the attempt and generating an error.
Database Gets the name of the current database or the database to be used after a connection is opened.
ServerVersion Gets a string containing the version of the server to which the client is connected.
State Gets the current state of the connection.

ǥ 171. Public Instance Methods

Method Description
BeginTransaction Overloaded. Begins a transaction at the database.
ChangeDatabase Changes the current database associated with an open DB2eConnection.
Close Closes the connection to the database. This is the preferred method of closing any open connection.
CreateCommand Creates and returns an DB2eCommand object associated with the DB2eConnection.
Open Opens a connection to a data source with the property settings specified by the ConnectionString.

ǥ 172. Public Instance Events

Event Description
InfoMessage Occurs when the DB2 Everyplace sends a warning or an informational message.
StateChange Occurs when the state of the connection changes.