The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
OdbcConnection::BeginTransaction Method (IsolationLevel)
.NET Framework (current version)
Starts a transaction at the data source with the specified IsolationLevel value.
Assembly: System.Data (in System.Data.dll)
Parameters
- isolevel
-
Type:
System.Data::IsolationLevel
The transaction isolation level for this connection. If you do not specify an isolation level, the default isolation level for the driver is used.
| Exception | Condition |
|---|---|
| InvalidOperationException | A transaction is currently active. Parallel transactions are not supported. |
The following example creates an OdbcConnection and an OdbcTransaction. It also demonstrates how to use the BeginTransaction, Commit, and Rollback methods.
.NET Framework
Available since 1.1
Available since 1.1
Show: