手机
当前位置:查字典教程网 >编程开发 >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中FSO对象对IIS WEB服务器数据安全的威胁及对策

ASP数据库连接方式大全

asp从缓存读数据实例

Asp获取url地址的实例

asp读取xml文件

ASP获取地址栏URL地址方法

ASP连接数据库的全能代码

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

asp实现读取数据库输出json代码

asp 导航excel数据到mssql access mysql 等数据方法

精品推荐
分类导航