Data.SqlExpr.TSQLConnection.TransactionsSupported

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

property TransactionsSupported: LongBool read FTransactionsSupported;

C++

__property System::LongBool TransactionsSupported = {read=FTransactionsSupported, nodefault};

プロパティ

種類 可視性 ソース ユニット
property public
Data.SqlExpr.pas
Data.SqlExpr.hpp
Data.SqlExpr TSQLConnection

説明

データベースサーバーがトランザクションをサポートしているかどうかを示します。

実行時に TransactionsSupported を読み出すと,データベースサーバーがトランザクションをサポートしているかどうかを確認できます。TransactionsSupported が false の場合,BeginTransactionCommitFreeAndNilRollbackFreeAndNilRollbackIncompleteFreeAndNil の各メソッドは何も行いません。 TransactionsSupported が true の場合は,SQL 接続コンポーネントを使ってトランザクションを管理できます。

メモ:  一部のサーバーは,複数のトランザクション(ネストまたはオーバーラップされたトランザクション)をサポートしています。TransactionsSupported が true の場合は,MultipleTransactionsSupported プロパティを読み出すことで,サーバーが複数のトランザクションをサポートしているかどうかをテストできます。

関連項目