ADO Command Object
Command Object
ADO Command object ကို database တစ်ခုနှင့် ဆန့်ကျင်သည့် query တစ်ခုတည်းကို execute လုပ်ရန် အသုံးပြုပါသည်။ မေးခွန်းသည် မှတ်တမ်းများကို ဖန်တီးခြင်း၊ ထည့်သွင်းခြင်း၊ ပြန်လည်ရယူခြင်း၊ ဖျက်ခြင်း သို့မဟုတ် အပ်ဒိတ်လုပ်ခြင်းစသည့် လုပ်ဆောင်ချက်များကို လုပ်ဆောင်နိုင်သည်။
ဒေတာကိုရယူရန် query ကိုအသုံးပြုပါက၊ ဒေတာကို RecordSet အရာဝတ္ထုအဖြစ် ပြန်ပို့ပေးပါမည်။ ဆိုလိုသည်မှာ ပြန်လည်ရယူထားသောဒေတာအား မှတ်တမ်းသတ်မှတ်အရာဝတ္တု၏ ဂုဏ်သတ္တိများ၊ စုစည်းမှုများ၊ နည်းလမ်းများနှင့် အဖြစ်အပျက်များဖြင့် ခြယ်လှယ်နိုင်သည်။
Command object ၏ အဓိကအင်္ဂါရပ်မှာ ကန့်သတ်ချက်များနှင့် သိမ်းဆည်းထားသော မေးခွန်းများနှင့် လုပ်ထုံးလုပ်နည်းများကို အသုံးပြုနိုင်စွမ်းဖြစ်သည်။
ProgID
set objCommand=Server.CreateObject("ADODB.command")
သတ္တိ
Property | Description |
---|---|
ActiveConnection | Sets or returns a definition for a connection if the connection is closed, or the current Connection object if the connection is open |
CommandText | Sets or returns a provider command |
CommandTimeout | Sets or returns the number of seconds to wait while attempting to execute a command |
CommandType | Sets or returns the type of a Command object |
Name | Sets or returns the name of a Command object |
Prepared | Sets or returns a Boolean value that, if set to True, indicates that the command should save a prepared version of the query before the first execution |
State | Returns a value that describes if the Command object is open, closed, connecting, executing or retrieving data |
နည်းလမ်းများ
Method | Description |
---|---|
Cancel | Cancels an execution of a method |
CreateParameter | Creates a new Parameter object |
Execute | Executes the query, SQL statement or procedure in the CommandText property |
စုစည်းမှုများ
Collection | Description |
---|---|
Parameters | Contains all the Parameter objects of a Command Object |
Properties | Contains all the Property objects of a Command Object |