内容简介:如何把Recordset转换成彩色的XML文件
<%@ codepage="65001" %>
<!-- #INCLUDE FILE="ADOVBS.INC" -->
<%
Response.ContentType = "text/xml"
' 如果不在 adovbs.inc 里,则设置一个常量.
Set Con = Server.CreateObject( "ADODB.Connection" )
Con.Open "Provider=sqloledb;UID=sa;DATABASE=Pubs"
' 建立数据库连接,如到SQL.
Set RS = Server.CreateObject( "ADODB.Recordset" )
' 建立并打开Recordset.
RS.ActiveConnection = Con
RS.CursorType = adOpenStatic
RS.Open "select * from titles"
Response.Write "<?xml version='1.0' encoding='ISO-8859-1'?>" & vbCRLF
' 发送给Response对象.
RS.Save Response, adPersistXML
%>
[1]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- img2txt - 将图像转换为各种基于文本的彩色文件
- Arduino 点亮RGB彩色流水灯
- go gl 彩色的三角形
- 树莓派GPIO控制RGB彩色LED灯
- Python使用MyQR制作专属动态彩色二维码
- 生成自己 QQ、微信的彩色动态图二维码
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Writing Apache Modules with Perl and C
Lincoln Stein、Doug MacEachern / O'Reilly Media, Inc. / 1999-03 / USD 39.95
Apache is the most popular Web server on the Internet because it is free, reliable, and extensible. The availability of the source code and the modular design of Apache makes it possible to extend Web......一起来看看 《Writing Apache Modules with Perl and C》 这本书的介绍吧!