The Defer Prepare property specifies whether to prepare and perform the initial execution of a statement in a single operation.
object.Properties("Defer Prepare") [= value]
object
Expression that evaluates to an object in the Applies To list.
value
Boolean that indicates how to prepare and perform initial execution of a statement, as specified in Settings.
Value | Description |
---|---|
True | A statement is prepared and initially executed in a single operation. |
False | Default. A statement is prepared, and then executed in two operations. |
adBoolean
Read/write
SSPROP_DEFERPREPARE
Setting Defer Prepare to True can result in a performance enhancement by avoiding an extra round trip to the server when a statement must be executed repeatedly.
Note If an application calls Defer Prepare on an instance of Microsoft® SQL Server™ version 7.0, the operation is ignored.