Export (0) Print
Expand All

OracleLob.BeginBatch Method ()

.NET Framework 1.1
Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Prevents server-side triggers from firing while performing multiple write operations.

[Visual Basic]
Overloads Public Sub BeginBatch()
[C#]
public void BeginBatch();
[C++]
public: void BeginBatch();
[JScript]
public function BeginBatch();

Exceptions

Exception Type Condition
InvalidOperationException The connection is closed.
ObjectDisposedException The object was closed or disposed.
OracleException An Oracle error has occurred.

Remarks

To write to the LOB, you must have retrieved the LOB using the FOR UPDATE clause in the SQL SELECT statement, and you must have a local transaction started.

Calling BeginBatch more than one time within the same transaction currently throws the Oracle "ORA-22293: LOB already opened in the same transaction" error. In addition, if you obtain the LOB using another OracleDataReader, and the original caller has not called the EndBatch method, the same error is generated. Therefore, you must call the EndBatch method when you are finished using the OracleLob.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

OracleLob Class | OracleLob Members | System.Data.OracleClient Namespace | OracleLob.BeginBatch Overload List

Show:
© 2014 Microsoft