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

AdsCommandBuilder.DeriveParameters

Advantage .NET Data Provider

Previous pageReturn to chapter overviewNext page

Populates the AdsCommand.Parameters collection with the parameter information for the stored procedure specified in the SelectCommand CommandText property.

public static void DeriveParameters( AdsCommand command );

Remarks

This method provides a simple method for populating the Parameters collection of the given command prior to executing a stored procedure. If AdsCommand.CommandType is not set to StoredProcedure, this method throws an ArgumentException.

This call requires a round trip to the server to retrieve the parameter information for the named stored procedure. Therefore it is more efficient to set the parameter information explicitly.

Calling this method is equivalent to calling the AdsCommand.DeriveParameters method directly.

See Also

AdsCommand.Parameters

AdsCommand.DeriveParameters