Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Tables vs. Query Components – Differences between Desktop and C/S databases

Author: Adailton C38044

The reason there are both Table and Query components is due to the fact there are table-oriented databases like Dbase, Paradox, or Access, and there are set-oriented databases like Interbase, Oracle, and MSSQL. These different types of database systems work and behave differently from one another and the same methods of access cannot be equally applied.

Table components like TTable are specifically designed to work best with table-oriented systems – they are native to them. Using Query components against such databases is slower because they SQL statements must be interpreted into table-oriented calls for that database.

Query components are specifically designed to work best with set-oriented databases that understand SQL directly and were designed to work this way. Using Table components against such a system is slower because the table-oriented functions must be converted into SQL statements to be sent off to the database.

Some of the things that Table components do that eat time and resources over a network with an SQL system are:

With Query components, you still need to use them right to get the most out of them, but the point is that you can use them right with Clisnt/Server databases.

Exit mobile version