Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: "Don Strenczewilk" <nospam@xxxxxxxxxx>
- Date: Thu, 21 Sep 2006 07:41:36 -0400
Oh, I didn't realize there were any that didn't. Does that mean you have to
manually close all open datasets on a data module, for instance, or you'll
get exceptions when freeing the DM?
CoreLab has added a handy property to their components named AutoClose which
addresses that point to some extent. When the property is set, it closes the
db cursor after all the records have been fetched. Very useful for lookup
tables and such since Closing the dataset throws away all the query results.
"Eric Grange" <egrangeNO@xxxxxxxxxxxxxxx> wrote in message
news:45127591$1@xxxxxxxxxxxxxxxxxxxxxxxxx
A possible improvement.. there's no need to wrap the DataSet.Open / Close
in a block because DataSet.Free also Closes the dataset.
This isn't a requirement of all datasets, ours f.i. systematically barf if
they haven't been closed by the time your free them.
This is to prevent datasets being "forgotten" in an open state (and thus
squandering DB resources, both client and server side, when they're not
causing trouble with transactions).
.
- Follow-Ups:
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: Eric Grange
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- References:
- Is This a WTF, or Just Captain Jake Being Dense?
- From: John Jacobson
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: Aleksander Oven
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: Eric Grange
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: Don Strenczewilk
- Re: Is This a WTF, or Just Captain Jake Being Dense?
- From: Eric Grange
- Is This a WTF, or Just Captain Jake Being Dense?
- Prev by Date: Re: Discussion: "Why Visual Studion 2005 is better then BDS 2006?"
- Next by Date: Re: Unbelievable! Checkmate: Impossible to buy Turbo Delphi Pro in HongKong till at least Dec/Jan...only maybe!
- Previous by thread: Re: Is This a WTF, or Just Captain Jake Being Dense?
- Next by thread: Re: Is This a WTF, or Just Captain Jake Being Dense?
- Index(es):