Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Ado and Stored procedure params destroy problem

Re: Ado and Stored procedure params destroy problem

From: Vladimir M. Zakharychev <vladimir.zakharychev_at_gmail.com>
Date: 31 May 2006 00:11:54 -0700
Message-ID: <1149059514.819967.130910@c74g2000cwc.googlegroups.com>

Alen Cappelletti wrote:
> Hi all,
> under are the codes for my stored procedure to oracle
> I have not undestood if I must destroy (set x = nothing) params and
> command object.
> Naturally I destroy the connection at the DB.
>
> --------
> Dim ObjRsUtente,ObjCmdUtente
> Set ObjCmdUtente = Server.CreateObject ("ADODB.Command")
> Set ObjCmdUtente.ActiveConnection = objConn
> ObjCmdUtente.CommandText = "PKG_NAVIGAZIONE.UTENTE"
> ObjCmdUtente.CommandType = adCmdStoredProc
> Set param1 = ObjCmdUtente.CreateParameter ( , adBSTR, adParamInput,
> ,Request.Cookies("Geco2"))
> ObjCmdUtente.Parameters.Append param1
>
> Set ObjRsUtente = ObjCmdUtente.Execute
>
> If Not ObjRsUtente.EOF Then
> ciclo.....
> End if
>
> If isObject(ObjRsUtente) Then
> ObjRsUtente.Close
> Set ObjRsUtente = Nothing
> End if
>
> ------------------------------------------------
> Under here I'm not sure.
> Thnks Alen.
> ------------------------------------------------
>
> Set param1 = nothing
> Set ObjCmdUtente = Nothing

To free the resources no longer utilized and give the garbage collector some food to feast upon?

--
    Vladimir M. Zakharychev
    N-Networks, makers of Dynamic PSP(tm)
    http://www.dynamicpsp.com
Received on Wed May 31 2006 - 02:11:54 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US