Navigation:  Advantage .NET Data Provider > AdsCommand Class > AdsCommand Methods >

AdsCommand.Prepare

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Performs the initial preparation of the statement specified in AdsCommand.CommandText.

public void Prepare();

Remarks

This method prepares the statement for execution on the server. It is generally not necessary to call this method because it is called automatically by Advantage .NET Data Provider when methods such as AdsCommand.ExecuteReader and AdsCommand.ExecuteNonQuery are called. There is no efficiency gain by calling this method first.

If you do call this method and AdsCommand.CommandType is set to CommandType.StoredProcedure, you must have set up the parameters for the stored procedure first.

See Also

ExecuteReader

ExecuteNonQuery

ExecuteScalar

DeriveParameters