Subject | Re: [IBO] Programmatically grant role to user |
---|---|
Author | Helen Borrie |
Post date | 2006-03-02T08:37:33Z |
At 07:12 PM 2/03/2006, you wrote:
come from SELECTing sets. Executable statements don't have datasets,
although certain ones, i.e. executable SPs, *do* return a single line
return structure, which you can happily put into a compatible
component - obviously not a grid, list, etc., which are for
multi-line datasets.
Incidentally, did you know that most scalar controls in native IBO
can be bound to input parameters instead of output fields? When you
get the knack of the parameterised statement, you'll want to forget
everything you ever did with the BDE and TTables. Come back in six
months and tell me if I predicted wrongly. :-)
all. You'll have a crash course in many of the cool things about
Firebird and database apps that your past life has denied you. :-)
Helen
>--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:Yes, of course!
>
> > That one is just tooooo simple. If your SQL statement starts with
> > SELECT, you use Open (or, in the case of IB_Cursor, First).
> >
> > All other SQL statements, use Execute.
> >
> > Btw, don't use IB_Query/IBOQuery for executable statements. Use
> > IB_DSQL (best) or IB_Cursor. Because executable statements are not
> > linked to visual controls, there's no problem using these
>components with TIBODatabase as their IB_Connection.
> >
>
>Thank you Helen
>
>I will take your advice.
>As a matter of interest, does using IB_DSQL give a speed advantage
>over IBOQuery
>or is there a different reason?A T**query component is designed for use with datasets. Datasets
come from SELECTing sets. Executable statements don't have datasets,
although certain ones, i.e. executable SPs, *do* return a single line
return structure, which you can happily put into a compatible
component - obviously not a grid, list, etc., which are for
multi-line datasets.
Incidentally, did you know that most scalar controls in native IBO
can be bound to input parameters instead of output fields? When you
get the knack of the parameterised statement, you'll want to forget
everything you ever did with the BDE and TTables. Come back in six
months and tell me if I predicted wrongly. :-)
>As I mentioned previously I recently converted from BDE to IBO & toYes. Download the relevant TechInfo sheets. In fact, download them
>date I have mainly used TDatabase/TQuery with TListView's. Is there a
>document/write-up suggesting which IBObject components should be used
>under what circumstances?
all. You'll have a crash course in many of the cool things about
Firebird and database apps that your past life has denied you. :-)
Helen