ADO ActiveConnection 屬性
❮ Command 物件參考大全
ActiveConnection 屬性指示 Command 物件所屬的 Connection 物件。
如果連線已關閉,它將設定或返回連線的定義。如果連線已開啟,它將設定或返回當前的 Connection 物件。
語法
objcommand.ActiveConnection
示例
<%
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
response.write(comm.ActiveConnection)
conn.close
%>
❮ Command 物件參考大全