您现在的位置是:网站首页> 编程资料编程资料
ASP之简化创建关闭记录集对象并创建使用简单的MSSQL存储过程_存储过程_
2023-05-25
286人已围观
简介 ASP之简化创建关闭记录集对象并创建使用简单的MSSQL存储过程_存储过程_
ASP 技巧一则之 简化创建关闭记录集对象并创建使用简单的MSSQL存储过程 By shawl.qiu
1. 建造 创建关闭记录集函数
2. 在MSSQL查询分析器中创建简单的MSSQL存储过程
3. 在ASP中应用步骤1,2
shawl.qiu
2006-8-26
http://blog.csdn.net/btbtd
1. 建造 创建关闭记录集函数
linenum
function createRs(rs)
set rs=createObject("adodb.recordset")
end function
function closeRs(rs)
rs.close
set rs=nothing
end function
2. 在MSSQL查询分析器中创建简单的MSSQL存储过程
linenum
create proc dbo.at_sbcat_t1
as
begin
select * from ctatsbcat order by sbcat
end
3. 在ASP中应用步骤1,2
linenum
<% dim rs
call createRs(rs)
with rs
.open "exec dbo.at_sbcat_t1",conn
do until .eof
response.write rs("sbcat")&"
"
.movenext
loop
end with
call closeRs(rs)
%>
1. 建造 创建关闭记录集函数
2. 在MSSQL查询分析器中创建简单的MSSQL存储过程
3. 在ASP中应用步骤1,2
shawl.qiu
2006-8-26
http://blog.csdn.net/btbtd
1. 建造 创建关闭记录集函数
linenum
function createRs(rs)
set rs=createObject("adodb.recordset")
end function
function closeRs(rs)
rs.close
set rs=nothing
end function
2. 在MSSQL查询分析器中创建简单的MSSQL存储过程
linenum
create proc dbo.at_sbcat_t1
as
begin
select * from ctatsbcat order by sbcat
end
3. 在ASP中应用步骤1,2
linenum
<% dim rs
call createRs(rs)
with rs
.open "exec dbo.at_sbcat_t1",conn
do until .eof
response.write rs("sbcat")&"
"
.movenext
loop
end with
call closeRs(rs)
%>
相关内容
- 用正则和xmlHttp实现的asp小偷程序_小偷/采集_
- 厉害的用Asp获取Dll加密新闻内容_应用技巧_
- 用ASP VBS xmlhttp adodbstream下载和保存图片的代码_应用技巧_
- 通过MSXML2自动获取QQ个人头像及在线情况(给初学者)_应用技巧_
- 一段在asp中加密与解密对应的函数_应用技巧_
- 在asp中通过vbs类实现rsa加密与解密的代码_应用技巧_
- 给万博系统的新闻系统增加分页功能[配有详细说明]_ASP基础_
- 讲解ASP方面的知识比较全的asp学习教程_ASP基础_
- asp,VBscript语法错误,史上最全最详细最精确第1/3页_ASP基础_
- 简单的ASP中经常用到的代码[推荐]第1/4页_应用技巧_
