Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I get round the unidirectional read-only limitation?

dbExpress

How do I get round the unidirectional read-only limitation?

by  towerbase  Posted    (Edited  )
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.
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top