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 对象参考大全