当前位置:网站首页>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
边栏推荐
- PCL库——报错解决:安装时遇到的cmake与anaconda的冲突问题
- 今天运气不错
- Shell concise tutorial
- 《预训练周刊》第51期:重构预训练、零样本自动微调、一键调用OPT
- How to split microservices
- A method to realize automatic renaming of pictures uploaded by WordPress
- Axi bus
- 创建Deployment后,无法创建Pod问题处理
- 实现WordPress上传图片自动重命名的方法
- [problem solving] which nodes are run in tensorflow?
猜你喜欢

今日睡眠质量记录78分

Two TCP flow control problems

高效率取幂运算

Hardware development notes (VII): basic process of hardware development, making a USB to RS232 module (VI): creating 0603 package and associating principle graphic devices

夏日里的清凉

Tiktok practice ~ public / private short video interchange

硬件开发笔记(七): 硬件开发基本流程,制作一个USB转RS232的模块(六):创建0603封装并关联原理图元器件

阿胖的操作记录

AXI总线

万物互联时代到来,锐捷发布场景化无线零漫游方案
随机推荐
mysql 锁机制与四种隔离级别
hue新建账号报错解决方案
Summary and Thinking on interface test automation
不一样的习惯
Shell 简明教程
芯片供给过剩之际,进口最多的中国继续减少进口,美国芯片慌了
【问题解决】Tensorflow中run究竟运行了哪些节点?
Openhgnn releases version 0.3
数字化新星何为低代码?何为无代码
Istio微服务治理网格流量管理核心资源控制器详解
这是什么空调?
抖音实战~公开/私密短视频互转
外包2年的我终于上岸了!记录我的字节跳动3轮面试,希望帮助到大家!
To understand again is the person in the song
Awk concise tutorial
Openfeign service interface call
PLM还能怎么用?
crane:字典项与关联数据处理的新思路
jvm 性能调优、监控工具 -- jps、jstack、jmap、jhat、jstat、hprof
内网学习笔记(8)