From Lazarus wiki
Revision as of 08:25, 3 July 2014 by Mike.cornflake (talk | contribs) (Freepascal Documentation: Fixed hyperlink)

TDataSet is the main link to the actual data in a database. A TDataSet acts like a cursor on a table or query-result.

 SQLTransaction1.Database := SQLConnection1;
 SQLQuery1.Transaction := SQLTransaction1;
 DataSource1.DataSet := SQLQuery1;
 DBGrid1.DataSource := DataSource1;

Freepascal Documentation