Subject | Re: [IBO] Re: application using up ram |
---|---|
Author | Helen Borrie |
Post date | 2004-03-05T08:49:54Z |
At 08:28 AM 5/03/2004 +0000, you wrote:
insert into aTable (aColumn) values (:SomeValue);
Then, before executing:
SomeInsQuery.ParamByNAme('SomeValue').AsSomeType:=
MyCursor.FieldByName('Some').AsTheSameType;
Helen
> > >What happens if I open a cursor, and do not close it before aShould be MyCursor.First;
>commit ?
> > >Will this affect this ?
> >
> > No, you don't open and close cursors. There is no buffering.
> > You call First on tib_cursor to "open" it and it's "finished" when
>the last
> > row has been fetched.
> >
> > How many rows are you reading? Where are you putting the data?
>
>Maybe I have missed something.
>
>I open a cursor like this:
>
>MyCursor.ParamByName('something....
>MyCursor.Open
>Executable SQL should be
> SomeInsQuery.FIeldByNAme('SomeValue') := MyCursor.FieldByName
>('Some').
> SomeInsQuery.ExecSQL;
insert into aTable (aColumn) values (:SomeValue);
Then, before executing:
SomeInsQuery.ParamByNAme('SomeValue').AsSomeType:=
MyCursor.FieldByName('Some').AsTheSameType;
>(* MyCursor.Close; *) No.That one is OK. It's your executable stuff that isn't right.
> Commit;
>
>
>Or am I using Cursors the wrong way ?
>
>My customer types a number on the screen, and when he presses ENTER I
>find the according record with a cursor, like:
>
>Select VALUES from TABLE Where Number = :PNumber.
>I'm starting to get a problem on one of our Terminal Servers becauseWell, the reason isn't obvious yet.
>the appl. is using up all RAM as time goes......
Helen