Easy Tutorial
❮ Ado Ref Connection Ado Ref Property ❯

ADO Parameter Object


Parameter Object

The ADO Parameter object provides information about an individual parameter used in stored procedures or queries.

The Parameter object is added to the Parameters collection when it is created. The Parameters collection is associated with a specific Command object, which uses this collection to pass parameters into and out of stored procedures and queries.

Parameters are used to create parameterized commands. These commands (after they have been defined and stored) use parameters to alter certain details of the command before execution. For example, an SQL SELECT statement can use a parameter to define the matching criteria for the WHERE clause and another parameter to define the column name for the SORT BY clause.

There are four types of parameters: input parameters, output parameters, input/output parameters, and return parameters.

Syntax

Properties

Property Description
Attributes Sets or returns the attributes of a Parameter object.
Direction Sets or returns how a parameter is passed to or from a stored procedure.
Name Sets or returns the name of a Parameter object.
NumericScale Sets or returns the number of digits to the right of the decimal point for a Parameter object.
Precision Sets or returns the maximum number of digits used to represent a numeric parameter.
Size Sets or returns the maximum size of the value in a Parameter object (in bytes or characters).
Type Sets or returns the type of a Parameter object.
Value Sets or returns the value of a Parameter object.

Methods

Method Description
AppendChunk Appends long binary or character data to a Parameter object.
Delete Deletes an object from the Parameters collection.
❮ Ado Ref Connection Ado Ref Property ❯