ADOActiveConnectionプロパティ_
❮完全なコマンドオブジェクトリファレンス
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
%>
❮完全なコマンドオブジェクトリファレンス