Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Prepare Method

OracleCommand.Prepare Method

Creates a prepared (or compiled) version of the command at the data source.

Namespace:  System.Data.OracleClient
Assembly:  System.Data.OracleClient (in System.Data.OracleClient.dll)

'Declaration
Public Overrides Sub Prepare

Implements

IDbCommand.Prepare

ExceptionCondition
InvalidOperationException

The Connection is not set.

-or-

The Connection is not Open.

Before you call Prepare, specify the data type of each parameter in the statement to be prepared.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft