Hi,
I'm connecting to a sql server 2005 db using classic asp. typical code would be ...
in the code i have somehting like
My question is this...
if include rsID.close then at the point of the Do While it will throw an error saying 'operation not allowed when object is closed'. OK understood. But if i don;t close it isn't the rsID object still hanging around in memory or has the set rsID = nothing destroyrf it so i don't have to worry about the close command.
I'm connecting to a sql server 2005 db using classic asp. typical code would be ...
Code:
function getExample
OpenDataConnection()
set rsID = CreateObject("ADODB.recordset")
searchPhrase = " SELECT blah blah" &_
rsID.Open searchPhrase, strConn
set getExample = rsID
[rsID.close]
set rsID = nothing
CloseDataConnection()
end function
Code:
set example = getExample Do while example.eof .... Loop
My question is this...
if include rsID.close then at the point of the Do While it will throw an error saying 'operation not allowed when object is closed'. OK understood. But if i don;t close it isn't the rsID object still hanging around in memory or has the set rsID = nothing destroyrf it so i don't have to worry about the close command.
Comment