Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

ADOParameter Objects and the ADOParameters Collection

ADOCommand objects contain an ADOParameters collection, which contains all the parameters associated with the command. Each of the individual ADOParameter objects is used to contain information about a parameter that is passed into the command text at runtime, or returned from a procedure executed in a command. New ADOParameter objects are created with the CreateParameter() method of a ADOCommand object.

ADOParameters Collection Members

The ADOParameters collection includes a Count property, which gives the number of individual Parameter objects in the collection, and an Item property, which is used to retrieve individual ADOParameter objects. You can add new ADOParameter objects to the collection with the Append() method or delete them from the collection with the Delete() method. In addition, the Refresh() method can be used to gather information from the provider about parameters used in procedures or parameterized commands.

ADOParameter Object Properties

Each of the ADOParameter objects in the ADOParameters collection of a command has the following properties, although some properties might not be available for certain providers:

ADOParameter Object Methods

The only method provided by ADOParameter objects is AppendChunk(), which is used to append data to large text or binary parameter values.

Share ThisShare This

Informit Network