惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

T
Threat Research - Cisco Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
V
Vulnerabilities – Threatpost
GbyAI
GbyAI
P
Proofpoint News Feed
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
A
About on SuperTechFans
T
Tenable Blog
M
MIT News - Artificial intelligence
IT之家
IT之家
I
Intezer
D
DataBreaches.Net
爱范儿
爱范儿
T
Threatpost
C
CERT Recently Published Vulnerability Notes
云风的 BLOG
云风的 BLOG
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
K
Kaspersky official blog
大猫的无限游戏
大猫的无限游戏
A
Arctic Wolf
Y
Y Combinator Blog
Cyberwarzone
Cyberwarzone
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
Spread Privacy
Spread Privacy
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
AWS News Blog
AWS News Blog
博客园 - 聂微东
C
Check Point Blog
S
Securelist
有赞技术团队
有赞技术团队
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
Last Week in AI
Last Week in AI
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
D
Docker
G
GRAHAM CLULEY
T
The Exploit Database - CXSecurity.com
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tailwind CSS Blog
L
Lohrmann on Cybersecurity
G
Google Developers Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
L
LangChain Blog

博客园 - edwin

脚本如何得到鼠标坐标 - edwin - 博客园 如何用正确的方法来写出质量好的软件的75条体会 去除衣物污渍大本营 和空姐同居的日子(大结局) 和空姐同居的日子(十五) 合空姐同居(十四) 和空姐同居的日子(十三) 和空姐同居的日子(十二) 和空姐同居的日子(十一) 和空姐同居的日子(十) 和空姐同居的日子(九) 和空姐同居的日子(八) 和空姐同居(七) 和空姐同居(六) 和空姐同居(五) 和空姐同居(四) 和空姐同居 (三) 与空姐同居的日子(第二节) 和空姐同居的日子
导出SQLServer数据到Excel中 - edwin - 博客园
edwin · 2006-05-17 · via 博客园 - edwin

<%@ Language=VBScript%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>导出SQLServer数据到Excel中</title>
</head>

<body>
<%
    Response.Clear
    Response.ContentType 
= "text/xls"
    Response.AddHeader 
"content-disposition","attachment;filename=Excel.xls"
    
'生成Excel
    Response.Write "编号" & Chr(9& "姓名" & Chr(9& "性别" & Chr(9& "年龄" & Chr(13)
    
Set Conn = Server.CreateObject("Adodb.Connection")
    ConnStr 
= "Provider=SQLOLEDB.1;Persist Security Info=True;User ID=sa;Password=;Initial Catalog=Info;Data Source=127.0.0.1"
    Conn.Open ConnStr
    Sql 
= "SELECT * FROM INFO"
    
Set Rs = Conn.Execute(Sql)
    Num 
= Rs.Fields.Count
    
Do While Not Rs.Eof
        MM 
= 0
        
While MM < CInt(Num)
               Data 
= Data & Rs(MM) & Chr(9)
            MM 
= MM+1
        
Wend
        Response.Write Data 
& Chr(13)
        Data 
= ""
    Rs.MoveNext:
Loop
    
Set Rs = Nothing
    Conn.Close
    
Set Conn = Nothing
    Response.Flush
    Response.End
%
>


</body>
</html>