Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


When to use TSQLDataset and when to use TClientDataset ? by towerbase
Posted: 14 Jan 04

TSQLDataset should be used for SQL statements which either do not return a result set or where the result set can be used in an unidirectional / read-only way.

It is more efficient to use TSQLDataset than to use TClientDataset when dealing with unidirectional / read-only result sets.

Note that it is possible to update a record using TSQLDataset with an SQL statement such as

UPDATE customer SET credit=100 WHERE id=1234

TSQLDataset is very efficient when updating all the records in the table (especially when the table is on a remote computer)

UPDATE customer SET credit=100

TClientDataset should be used if bi-directional support is required (for example to populate a TDBGrid), when the current record is to be updated or when a what-if type scenario is to be investigated.

Back to Embarcadero: Delphi FAQ Index
Back to Embarcadero: Delphi Forum

My Archive

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close