ADO ActiveConnection 속성
정의와 사용법
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 %>