TADOStoredProc
- From: "Paul Smith" <paul.smith@xxxxxxxxxxxxxxxxxxxxx>
- Date: 16 Aug 2006 07:44:12 -0700
Using TADOStoredProc I usually write the following code:
SP1.Parameters.ParamValues['@Param'] := 20;
with SP1 DO
BEGIN
OPEN;
BLAH BLAH
CLOSE;
END;
My question is do I need to close the result set at the end and
should it be in a finally clause? I see others actually close before they open, is this needed? Will not closing cause performance issues?
Likewise for TADOQuery, do you have to set Active to false and close or is there no need to bother?
Many thanks and your help is much appreciated.
Paul
.
- Follow-Ups:
- Re: TADOStoredProc
- From: Brian Bushay TeamB
- Re: TADOStoredProc
- From: Kevin Frevert
- Re: TADOStoredProc
- Prev by Date: Re: BDS 2006 ADO EOleException
- Next by Date: Re: TADOStoredProc
- Previous by thread: TADOQuery, OnFilterRecord and Locate
- Next by thread: Re: TADOStoredProc
- Index(es):
Relevant Pages
|