手机
当前位置:查字典教程网 >编程开发 >ASP教程 >asp获取数据库的连接属性的方法
asp获取数据库的连接属性的方法
摘要:asp获取数据库的连接属性的方法OptionExplicitdimobjCNNdimintCTPropsdimitemdimvbCRLFvb...

asp获取数据库的连接属性的方法

Option Explicit

dim objCNN

dim intCTProps

dim item

dim vbCRLF

vbCRLF = chr(10)

Response.Write vbCRLF

Response.Write

春风精彩之查看数据库属性 vbCRLF

Response.Write vbCRLF

set objCNN = Server.CreateObject(ADODB.connection)

objCNN.Open DSN=VicTest

Response.Write 编号 vbCRLF

Response.Write Name值 vbCRLF

intCTProps = 0

for each item in objCNN.Properties

intCTProps = intCTProps + 1

Response.Write intCTProps vbCRLF

Response.Write item.name vbCRLF

Response.Write item.value vbCRLF

next

Response.Write vbCRLF

Response.Write vbCRLF

Response.Write vbCRLF

set objCNN = Nothing

set intCTProps = nothing

set item = nothing

set vbCRLF = nothing

%

【asp获取数据库的连接属性的方法】相关文章:

ASP中Request对象获取客户端数据的顺序(容易忽略)

asp 中常用的文件处理函数

Asp类 的数据库领域

asp取动态表单中数据并写入xml文件,用xsl显示

access 数据连接程序

JScript中遍历Request表单参数集合的方法

存储过程里的递归 实现方法

asp读取xml文件

ASP获取到的系统时间有上午,下午的解决方法

asp获取用户真实IP地址的方法

精品推荐
分类导航