اشیاء Command ADO

Command object

The ADO Command object is used to execute a simple database-oriented query. This query can perform actions such as creating, adding, retrieving, deleting, or updating records.

If this query is used to retrieve data, this data will be returned as a RecordSet object. This means that the retrieved data can be operated on by the properties, collections, methods, or events of the RecordSet object.

The main feature of the Command object is its ability to use stored queries and parameterized stored procedures.

ProgID

set objCommand=Server.CreateObject("ADODB.command")

property

property توضیح
ActiveConnection set or return a string that includes the definition of the connection or Connection object.
CommandText set or return a string value that contains the provider command (such as SOL statement, table name, or stored procedure call). The default value is "" (zero-length string).
CommandTimeout set or return a long integer value, which indicates the time (in seconds) for the command to be executed. The default value is 30.
CommandType تنظیم یا بازگشت نوع یک Command Object
نام تنظیم یا بازگشت نام یک Command Object
پیش‌آماده نشان‌دهنده این که آیا نسخه برنامه‌ریزی شده (پیش‌آماده) فرمان قبل از اجرا ذخیره می‌شود یا خیر.
وضعیت بازگشت یک مقدار که می‌تواند وضعیت Command Object را توصیف کند که آیا باز، بسته، متصل، اجرا یا داده بازیابی شده است.

روش

روش توضیح
کنسل کنسل کردن یک اجرای یک‌بارگی یک روش.
CreateParameter ایجاد یک Parameter Object جدید
اجراء اجرای جستجو، دستور SQL یا پروسه ذخیره شده در ویژگی CommandText.

جمع

جمع توضیح
پارامترها همه Parameter‌هایی که شامل یک Command Object هستند.
نوع‌ها همه Property‌هایی که شامل یک Command Object هستند.