Solved

Databasequestion

Posted on 2000-03-17
7
151 Views
Last Modified: 2010-04-04
I'm using Dbase files. For working i only use the query and the database component. For what ist the table component important?
0
Comment
Question by:tzigan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2628142
TTable provides direct access to one table at one time. Working with DBase files it not created temporary tables (TQuery do it).

Cheers,
Igor.
0
 

Author Comment

by:tzigan
ID: 2628165
That means, i don't need the ttable, and doesn't give me advantage for using dbase files?
0
 
LVL 7

Expert Comment

by:RBertora
ID: 2628214
No you don't need to work with the table component.

In my oppinion it is a waiste of time designed specifically for knocking up super fast demos for people who don't have a clue of SQL. Commonly the ttable is used with the DBNavigator component which itself is buggy and just makes the whole thing not worth it.

(just my experience)

Rob;-)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 9

Expert Comment

by:ITugay
ID: 2628234
It will work litle bit faster if you will use TTable, instead TQuery, where it's possible. Run you application and see at working directory, every time, you TQuery.Open, you can see temporary file _xxx.DBF. Application spend some time to create it. Then system show you result of query by the same way as for TTable. Usually you need TQuery for retrieving records by condition or joining tables or retrieveing data from a SQL server.  

Best regards,
Igor.



0
 
LVL 10

Accepted Solution

by:
Lischke earned 100 total points
ID: 2628245
Actually, you can consider TTable as being a special form of a TQuery (although they are not descentents of each other). The keypoint is that the DB works with socalled cursor (that's where the original name comes from as "cursor" means: "current set of record"). TQuery does NOT create temporary tables by default. It just tries to open a DB cursor as TTable does too. Actually, TTable is a convenient wrapper for database beginners. Professional DB packages like IB Objects don't even have a TTable equivalent. They all work exclusively with queries (and special constructs like DSQL, stored procedures, generators etc.).

Ciao, Mike
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2628249
But it only theory, I'm also prefer TQuery;)

Cheers,
Igor.
0
 
LVL 9

Expert Comment

by:ITugay
ID: 2628273
But it only theory, I'm also prefer TQuery;)

Cheers,
Igor.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
error 1.1 400 Bad request idhttp delphi 18 199
HTML text in the body of an email (delphi code) 12 210
Working with hours 3 72
Delphi, TImage, Png 2 19
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question