ADO Parameter Voorwerp


Parameter Voorwerp

Die ADO Parameter-objek verskaf inligting oor 'n enkele parameter wat in 'n gestoorde prosedure of navraag gebruik word.  

'n Parametervoorwerp word by die Parameterversameling gevoeg wanneer dit geskep word. Die Parameterversameling word geassosieer met 'n spesifieke Command-objek, wat die versameling gebruik om parameters in en uit gestoorde prosedures en navrae deur te gee.

Parameters kan gebruik word om geparameteriseerde opdragte te skep. Hierdie opdragte word (nadat dit gedefinieer en gestoor is) parameters gebruik om sekere besonderhede van die opdrag te verander voordat dit uitgevoer word. Byvoorbeeld, 'n SQL SELECT-stelling kan 'n parameter gebruik om die kriteria van 'n WHERE-klousule te definieer.

Daar is vier tipes parameters: insetparameters, uitsetparameters, inset/afvoerparameters en terugkeerparameters.


Sintaksis

objectname.property
objectname.method

Eienskappe

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 procedure
Name Sets or returns the name of a Parameter object
NumericScale Sets or returns the number of digits stored to the right side of the decimal point for a numeric value of a Parameter object
Precision Sets or returns the maximum number of digits allowed when representing numeric values in a Parameter
Size Sets or returns the maximum size in bytes or characters of a value in a Parameter object
Type Sets or returns the type of a Parameter object
Value Sets or returns the value of a Parameter object

Metodes

Method Description
AppendChunk Appends long binary or character data to a Parameter object
Delete Deletes an object from the Parameters Collection