OracleCommand::Prepare Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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)

virtual void Prepare() override

Exception Condition

The Connection is not set.


The Connection is not Open.

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

.NET Framework
Available since 1.1
Return to top