ADO Prepared 屬性
❮ Command 物件參考大全
Prepared 屬性設定或返回一個布林值,如果設定為 True,則表示在執行之前,命令應儲存 CommandText 屬性中指定的查詢的已準備版本。
這可能會減慢命令的第一次執行速度,但在第一次執行後,提供程式將使用編譯後的版本,從而提高執行速度。
語法
objcommand.Prepared=true 或 false
示例
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open "c:/webdata/northwind.mdb"
set comm=Server.CreateObject("ADODB.Command")
comm.ActiveConnection=conn
comm.CommandText="orders"
comm.Prepared=true
response.write(comm.Prepared)
conn.close
%>
❮ Command 物件參考大全