DB2ConnectionStringBuilder.executionMode Property

Gets or sets whether previously captured statements should be executed statically for client optimization using pureQuery. An error is thrown if captureMode=on while executionMode=STATIC.

Namespace:
IBM.Data.DB2
Assembly:
IBM.Data.DB2 (in IBM.Data.DB2.dll)

Syntax


[Visual Basic]
Public Property executionMode As String
[C#]
public String executionMode {get; set;}
[C++]
public: __property string* get_executionMode();
public: __property void set_executionMode(string*);
[JScript]
public function get executionMode() : String;
public function set executionMode(String);

Property value

static
Statements that are captured and packaged in the database are executed statically, statements that have not been captured will be executed dynamically.
dynamic
All statements will be processed dynamically.
Note: If captureMode is set to on and executionMode is static, an invalid Attribute exception will be thrown when attempting to open a connection.

Data server restrictions

This property applies only toDb2® data servers.