Re:missing query, table name or procedure name
Quote
"Bill Todd" <b...@notthis.dbginc.com> wrote in message >
> >so is it required to set TSQLQuery's SQL property on design time?
> No but you have to set the SQL property before you open the
> ClientDataSet or the SQLQuery.
i do it like that. this (probably) causes the error but it doesn't open
anything before setting SQL property (?)
QueryRoutes.Close;
QueryRoutes.SQL.Clear;
QueryRoutes.SQL.Add('SELECT id_route FROM routes');
QueryRoutes.Open;
ClientRoutes.Open;
ClientRoutes.Refresh;
i do Client.Open and Client.Refresh everytime i'am refreshing view. is it
ok? because only this way i found clientdataset working fine but it doesn't
seem nice. (may be doing inserts and updates on same sqlquery as selects
automaticaly closes clientdataset and i have to open it again?)
Quote
> >i prefer setting all sql queries in code.
> >i use the same SQLQuery component for "selects" and "inserts", "updates"
> >etc. so i have to set SQL property for "select" after every "insert",
> I would not use the SQLQuery that is connected to the DataSetProvider
> for any other purpose. Use a second SQLQuery component for your INSERT
> and UPDATE statements.
so it isn't good idea to use the same query for few SELECTs (with other set
of fields) too, is it?
thanks very much for your advice.
--
michal talecki
p.s. i'm sorry if my questions are too trivial but i couldn't find answers
anywhere else.