ADO ချိတ်ဆက် မှု Object
ချိတ်ဆက်မှု အရာဝတ္ထု
ADO Connection Object ကို ဒေတာရင်းမြစ်တစ်ခုသို့ ဖွင့်ထားသော ချိတ်ဆက်မှုကို ဖန်တီးရန်အတွက် အသုံးပြုပါသည်။ ဤချိတ်ဆက်မှုမှတစ်ဆင့်၊ သင်သည် ဒေတာဘေ့စ်တစ်ခုကို ဝင်ရောက်ပြီး စီမံခန့်ခွဲနိုင်သည်။
ဒေတာဘေ့စ်တစ်ခုကို အကြိမ်ပေါင်းများစွာ ဝင်ရောက်အသုံးပြုလိုပါက၊ ချိတ်ဆက်မှုအရာဝတ္တုကို အသုံးပြု၍ ချိတ်ဆက်မှုတစ်ခုကို တည်ဆောက်သင့်သည်။ Command သို့မဟုတ် Recordset အရာဝတ္ထုမှတဆင့် ချိတ်ဆက်မှုစာကြောင်းကို ဖြတ်သန်းခြင်းဖြင့် ဒေတာဘေ့စ်သို့ ချိတ်ဆက်နိုင်သည်။ သို့သော်၊ ဤချိတ်ဆက်မှုအမျိုးအစားသည် သီးခြားမေးမြန်းချက်တစ်ခုတည်းအတွက်သာ ကောင်းမွန်ပါသည်။
ProgID
set objConnection=Server.CreateObject("ADODB.connection")
သတ္တိ
Property |
Description |
Attributes |
Sets or returns the attributes of a Connection
object |
CommandTimeout |
Sets or returns the number of seconds to wait while
attempting to execute a command |
ConnectionString |
Sets or returns the details used to create a connection to a data
source |
ConnectionTimeout |
Sets or returns the number of seconds to wait for a connection to
open |
CursorLocation |
Sets or returns the location of the cursor service |
DefaultDatabase |
Sets or returns the default database name |
IsolationLevel |
Sets or returns the isolation level |
Mode |
Sets or returns the provider access permission |
Provider |
Sets or returns the provider name |
State |
Returns a value describing if the connection is open or
closed |
Version |
Returns the ADO version number |
နည်းလမ်းများ
Method |
Description |
BeginTrans |
Begins a new transaction |
Cancel |
Cancels an execution |
Close |
Closes a connection |
CommitTrans |
Saves any changes and ends the current transaction |
Execute |
Executes a query, statement, procedure or provider specific
text |
Open |
Opens a connection |
OpenSchema |
Returns schema information from the provider about the data
source |
RollbackTrans |
Cancels any changes in the current transaction and ends the
transaction |
အဲ့ဒါနဲ့
မှတ်ချက်- VBScript သို့မဟုတ် JScript ကို အသုံးပြု၍ အဖြစ်အပျက်များကို သင် မကိုင်တွယ်နိုင်ပါ (Visual Basic၊ Visual C++ နှင့် Visual J++ ဘာသာစကားများကသာ ဖြစ်ရပ်များကို ကိုင်တွယ်နိုင်သည်)။
စုစည်းမှုများ
Collection |
Description |
Errors |
Contains all the Error objects of the Connection object |
Properties |
Contains all the Property objects of the Connection object |