Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Killing Unknown Recordsets

Status
Not open for further replies.

NWChowd

Programmer
May 26, 2002
84
US
Is there a way to set multiple recordsets = nothing when the name of the recordsets (rsFake, for example) is not known ahead of time? In other words, I would like to create one include at the bottom of many pages whose sole function is to close all recordsets on that page and set them all = nothing to free up memory resources. I believe this is possible in VB6, but how can it be done in ASP and VBScript???

Anyone have any suggestions?

Thanks,
DMill
 
I dont know if you an do them to all at one time.. but you can just do

set rsFlake = nothing
set blabla = nothing

on each one.. I don't believe there is a short way of doing that.. www.vzio.com
star.gif
/ [wink]
 
Ok here is a simple little tool I whipped up that does it for you... if you want the source mail me at jason@vzio.com

format is like this:

ObjText, rsFlake, rsHome
or
ObjText rsFlake rsHome
www.vzio.com
star.gif
/ [wink]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top