To use a table type dataset
- Place the appropriate dataset component in a data module or on a form, and set its Name property to a unique value appropriate to your application.
- Identify the database server that contains the table you want to use. Each table type dataset does this differently, but typically you specify a database connection component:
- For TTable, specify a TDatabase component or a BDE alias using the DatabaseName property.
- For TADOTable, specify a TADOConnection component using the Connection property.
- For TSQLTable, specify a TSQLConnection component using the SQLConnection property.
- For TIBTable, specify a TIBConnection component using the Database property. For information about using database connection components, see Connecting to databases
- Set the TableName property to the name of the table in the database. You can select tables from a drop-down list if you have already identified a database connection component.
- Place a data source component in the data module or on the form, and set its DataSet property to the name of the dataset. The data source component is used to pass a result set from the dataset to data-aware components for display.