这么简单的程序居然在释放内存有问题

citymice 2004-02-10 08:25:43
option explicit
dim g_Cnn
dim sql
dim rs
Const strPwd = "XXXXXX"
set g_Cnn = server.createobject("adodb.connection")
g_Cnn.CommandTimeout = 30
g_Cnn.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=True;User ID=" _
& "sa" & ";Initial Catalog=" & "ttzf2004" & ";Data Source=" _
& "jerry" & ";pwd=" & strPwd
g_Cnn.Open

sql="select * from house"

set rs= g_cnn.execute(sql)

do while not rs.eof
response.write rs("address") & "<BR>"
rs.movenext
loop

rs.close
set rs=nothing

g_Cnn.Close
set g_Cnn = nothing

用windows任务管理器察看sqlservr.exe 内存使用执行之后居然不会释放

奇怪,郁闷

...全文
119 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

28,390

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧