Objek Parameter ADO


Objek Parameter

Objek Parameter ADO memberikan informasi tentang parameter tunggal yang digunakan dalam prosedur atau kueri tersimpan.  

Objek Parameter ditambahkan ke Koleksi Parameter saat dibuat. Koleksi Parameter dikaitkan dengan objek Perintah tertentu, yang menggunakan Koleksi untuk meneruskan parameter masuk dan keluar dari prosedur dan kueri tersimpan.

Parameter dapat digunakan untuk membuat Perintah Parameter. Perintah-perintah ini (setelah didefinisikan dan disimpan) menggunakan parameter untuk mengubah beberapa detail perintah sebelum dijalankan. Misalnya, pernyataan SQL SELECT bisa menggunakan parameter untuk menentukan kriteria klausa WHERE.

Ada empat jenis parameter: parameter input, parameter output, parameter input/output, dan parameter kembali.


Sintaksis

objectname.property
objectname.method

Properti

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

Metode

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