INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

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.

Jobs

dbExpress

How do I get round the unidirectional read-only limitation? by towerbase
Posted: 14 Jan 04

The result set returned by TSQLDataset is unidirectional.

This means that you can issue First and Next on the result set but not other commands such as Prior.

The result set returned by TSQLDataset is read-only.

This means that you cannot amend a record returned by TSQLDataset.

These appear to be severe limitations.  But there are ways to provide bi-directional and update capabilities.  TClientDataset and TDataSetProvider are the components to use with TSQLDataset to give bi-directional and update support.

The reason why TSQLDataset has these limitations is to provide a very fast lightweight means of accessing a database.  This means when you only need uni-directional read-only capabilities you can have them in the fastest way possible.  Speed and low resource use can be vital - especially for on line systems when giving the customer a fast response is important for the business.

Full bi-directional and update support can be added to TSQLDataset by linking in the TClientDataset and TDataSetProvider components.

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

My Archive

Resources

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