当前位置: 首页 > 网络学院 > 服务端脚本教程 > ADO > ADO ActiveConnection 属性

ADO
ADO介绍
ADO数据库连接
ADO记录集
ADO显示记录
ADO查询语句
ADO记录排序
ADO添加记录
ADO更新记录
ADO删除记录
ADO演示
ADO提升执行速度
ADO Command对象
ADO Connection对象
ADO Error
ADO Field
ADO Parameter
ADO 属性
ADO Record
ADO Recordset
ADO Stream

ADO ActiveConnection 属性


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 362 ::
收藏到网摘: n/a

The ActiveConnection property tells which Connection object the Command object belongs to.
ActiveConnection属性的作用是:区分指令对象所属于那个连接对象。

If the connection is closed, it sets or returns a definition for a connection. If the connection is open it sets or returns the current Connection object.
如果连接被关闭,它将返回一段关闭的确认信息;如果连接打开,它将返回当前的连接对象。

Syntax
语法

objcommand.ActiveConnection

Example
案例

<%
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
%>

评论 (0) All

登陆 | 还没注册?