当前位置:网站首页>How ASP connects Excel
How ASP connects Excel
2022-06-27 13:38:00 【qhdzj87】
stay ASP in , Can be Excel As a lightweight database , For accessing data . Here is a use ASP Connect Excel Code examples of . First create excel Data links , Then open the connection , stay excel Middle name is “ Recruitment ” Query in the table of id=1 A piece of data , And print StuName Columns of data , Finally, close the data connection .
Dim connstr
connstr="DBQ="&Server.MapPath("/shixizhaopin/gangwei.xls")&";DefaultDir=;DRIVER={Microsoft Excel Driver (*.xls)};"
set conn=server.createobject("ADODB.CONNECTION")
conn.open connstrxls
Set rs=Server.CreateObject("ADODB.Recordset")
sql = "SELECT * FROM [zhaopin$] where id = 1"
rs.Open sql,connxls,1,1
response.write(rs("StuName"))
rs.close
set rs = nothing
conn.close
set conn = nothing
边栏推荐
- 一道shell脚本的统计题
- How to choose LAN instant messaging software
- MySQL locking mechanism and four isolation levels
- Hue new account error reporting solution
- Shake hands with life and make peace
- Daily question brushing record (6)
- 每日刷题记录 (六)
- Shell concise tutorial
- Today's sleep quality record 78 points
- Crane: a new way of dealing with dictionary items and associated data
猜你喜欢
随机推荐
MySQL index and its classification
L June training (day 27) - figure
【第27天】给定一个整数 n ,打印出1到n的全排列 | 全排列模板
诗歌一首看看
防火墙基础之华为华三防火墙web页面登录
Can flush open an account for stock trading? Is it safe?
What is low code for digital Nova? What is no code
Daily question brushing record (6)
A statistical problem of shell script
Half find (half find)
Record number of visits yesterday
Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices
Quickly set up a website to visit foreign countries, set up SS and start BBR to quickly surf the Internet
jvm 参数设置与分析
Openfeign service interface call
每日刷題記錄 (六)
Openhgnn releases version 0.3
How to choose LAN instant messaging software
[tcaplusdb knowledge base] Introduction to tcaplusdb tcapulogmgr tool (I)
PCL库——报错解决:安装时遇到的cmake与anaconda的冲突问题







![[XMAN2018排位赛]通行证](/img/eb/7bf04941a96e9522e2b93859266cf2.png)

