简要咨询咨询QQ网站导航网站搜索手机站点联系我们设为首页加入收藏 

怎样获知数据库的连接属性?

来源:易贤网   阅读:1192 次  日期:2014-11-14 14:52:24

温馨提示:易贤网小编为您整理了“怎样获知数据库的连接属性?”,方便广大网友查阅!

<%@ language=vbscript %>

<%

option explicit

dim objcnn

dim intctprops

dim item

dim vbcrlf

vbcrlf = chr(10)

response.write <html><head></head><body> & vbcrlf

response.write <p><h3>春风精彩之查看数据库属性</h3></p> & vbcrlf

response.write vbcrlf

set objcnn = server.createobject(adodb.connection)

objcnn.open dsn=victest

response.write <table border=1><tr><td width='10%'>>编号</td> & vbcrlf

response.write <td width='70%'>>name</td><td width='20%'>>值</td></tr> & vbcrlf

intctprops = 0

for each item in objcnn.properties

intctprops = intctprops + 1

response.write <tr><td> & intctprops & </td> & vbcrlf

response.write <td> & item.name & </td> & vbcrlf

response.write <td> & item.value & </td></tr> & vbcrlf

next

response.write </table> & vbcrlf

response.write vbcrlf

response.write </body></html> & vbcrlf

set objcnn = nothing

set intctprops = nothing

set item = nothing

set vbcrlf = nothing

%>

更多信息请查看IT技术专栏

更多信息请查看技术文章
点此处就本文及相关问题在本站进行非正式的简要咨询(便捷快速)】     【点此处查询各地各类考试咨询QQ号码及交流群
上一篇:鼠标js事件有哪些?
下一篇:实现word下划线离文字远点儿
易贤网手机网站地址:怎样获知数据库的连接属性?
由于各方面情况的不断调整与变化,易贤网提供的所有考试信息和咨询回复仅供参考,敬请考生以权威部门公布的正式信息和咨询为准!