ADO ConnectionString ပိုင်ဆိုင်မှု
❮ ချိတ်ဆက်မှု Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
ConnectionString ပိုင်ဆိုင်မှုသည် ဒေတာအရင်းအမြစ်တစ်ခုသို့ ချိတ်ဆက်မှုတစ်ခုဖန်တီးရန် အသုံးပြုသည့်အသေးစိတ်အချက်အလက်များကို သတ်မှတ် သို့မဟုတ် ပြန်ပေးသည်။
မှတ်ချက်- ဝန်ဆောင်မှုပေးသူနှင့် ဖိုင်အမည် ကန့်သတ်ချက်များ နှစ်ခုလုံးကို သင်အသုံးမပြုနိုင်ပါ။
အထားအသို
objconn.ConnectionString="para1=value;para2=value;etc;"
ConnectionString ပိုင်ဆိုင်မှုတွင် ဤကန့်သတ်ချက်များပါရှိသည်။
Parameter | Description |
---|---|
Provider | The provider to use for the connection |
File Name | A provider-specific file that contains connection information |
Remote Provider | The provider to use when opening a client-side connection |
Remote Server | A path name of the server to use when opening a client-side connection |
url | An absolute URL identifying a resource, such as a file or directory |
ဥပမာ
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0"
conn.open server.mappath("database.mdb")
conn.close
%>
❮ ချိတ်ဆက်မှု Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။