内容简介:怎样获知数据库的连接属性?
<%@ 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
%>
以上所述就是小编给大家介绍的《怎样获知数据库的连接属性?》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- 怎样获知数据库的连接属性?
- 获知某一年的母亲节,父亲节和感恩节日期
- CSS 属性篇(七):Display属性
- JavaScript对象之数据属性与访问器属性
- Logback file属性 与 fileNamePattern属性的关系
- 浅谈Spring Boot 属性配置和自定义属性配置
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
使用HTML5和Node构建超媒体API
【美】Mike Amundsen(麦克.阿蒙森) / 臧秀涛 / 电子工业出版社 / 2014-5 / 55.00元
《使用HTML5和Node构建超媒体API》探讨了超媒体API 的设计,介绍了作为超媒体API 的构件块的超媒体因子,并讲解了基本格式、状态转移、领域风格和应用流程这4 种超媒体设计元素;之后作者结合具体的场景,通过3个动手实验章节,从超媒体因子和超媒体设计元素入手,用实际的代码向我们详细地演示了超媒体API 的设计;最后介绍了超媒体设计的文档编写、注册与发布等内容。 《使用HTML5和No......一起来看看 《使用HTML5和Node构建超媒体API》 这本书的介绍吧!