Let's look at the following steps:
- Create a new VCL application by selecting File | New | VCL Forms Application.
- Put a TFDConnection on the form and set its DriverName to SQLite (because SQL Local uses SQLLite in its engine).
- Place on the form a DBEdit (aligned to the top), a TButton (aligned to the top), a DBNavigator (aligned to the top), a DBGrid (aligned to the client), and a DataSource. Set the DataSource property of DBNavigator1 and DBGrid1 to DataSource1.
- From DataExplorer, drag and drop onto the form the SALES table from the DELPHICOOKBOOK connection under the InterBase voice.
- Now, put on the form one TFDQuery, one TFDLocalSQL, and one TClientDataSet.
- It's time to rename components:
Old | New |
FDQuery1 | LocalQuery ... |