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")&"<br/>"
.movenext
loop
end with
call closers(rs)
%>
【说明】:本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:)!