Recent

Author Topic: SqlQuery without database  (Read 2870 times)

neodivx

  • New Member
  • *
  • Posts: 13
SqlQuery without database
« on: January 15, 2007, 10:07:01 pm »
hi all  :D

i've got a little problem

in delphi, i could search in a ttable with a sql research without indicate a database. ( i create my table with createtable directly in the source code )

after that, i drop a tquery, and i do ( for example ):

Code: [Select]
 with LQuery1 do
  begin
    Active:=False;
    SQL.Clear;
    SQL.Add('Select * from "c:\video\video\video.dbf"');
    Active:=True;
  end;


( do i say that i connect my tquery with a tdatasource of course )


when i try this code in lazarus,with a Tdbf and TDataSource, it asks me for a database, and doesn't want to go further...

do i miss something ? coulds you help me to find the way ?


thanks for all your reply