 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Wayne Niddery [TeamB] Guest
|
Posted: Sat Aug 16, 2003 3:38 pm Post subject: Re: ADO vs Interbase components |
|
|
Todd Cary wrote:
| Quote: |
The first thing I noticed is that in order to do a Query I had to use
3 components: Database, Transaction and Query. With ADO there would
be just two. The next difference is the result set is read-only and
I am use to being able to edit the result set with ADO.
|
Use a TIBDataset component for read/write purposes. For read-only needs, use
TIBQuery if you need to attach data-aware controls, otherwise use TIBSQL
(best performance).
IBX is preferable for connecting to Interbase. The only reason not to use
IBX is if you know you must support more than a single database type, then
you should look at dbExpress (or possibly ADO).
For most purposes, you need one TIBDatabase, one TIBTransaction, and any
number of datasets (TIBDataset, etc).
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
| Back to top |
|
 |
James Crea Guest
|
Posted: Tue Aug 19, 2003 8:09 pm Post subject: Re: ADO vs Interbase components |
|
|
Wayne:
I am using TIBQuery with an associated TIBUpdateSQL to provide
Update/Delete capability rather than the TIBDataset. What is the bad and
good on that? How do you provide master detail relationships with TIBDataset
to support thing like QuickReports. I am using TIBTable now but want to
replace it with TIBDataset since TIBTable is a no no.
Thanks:
James Crea
"Wayne Niddery [TeamB]" <wniddery (AT) chaff (DOT) aci.on.ca> wrote
| Quote: | Todd Cary wrote:
The first thing I noticed is that in order to do a Query I had to use
3 components: Database, Transaction and Query. With ADO there would
be just two. The next difference is the result set is read-only and
I am use to being able to edit the result set with ADO.
Use a TIBDataset component for read/write purposes. For read-only needs,
use
TIBQuery if you need to attach data-aware controls, otherwise use TIBSQL
(best performance).
IBX is preferable for connecting to Interbase. The only reason not to use
IBX is if you know you must support more than a single database type, then
you should look at dbExpress (or possibly ADO).
For most purposes, you need one TIBDatabase, one TIBTransaction, and any
number of datasets (TIBDataset, etc).
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
|
| Back to top |
|
 |
Wayne Niddery [TeamB] Guest
|
Posted: Wed Aug 20, 2003 12:45 am Post subject: Re: ADO vs Interbase components |
|
|
James Crea wrote:
| Quote: |
I am using TIBQuery with an associated TIBUpdateSQL to provide
Update/Delete capability rather than the TIBDataset. What is the bad
and good on that? How do you provide master detail relationships with
TIBDataset to support thing like QuickReports. I am using TIBTable
now but want to replace it with TIBDataset since TIBTable is a no no.
|
If the TIBUpdateSQL is working for you then no need to replace it.
Master/detail works with TIBDataset by hooking up the Datasource and
specifying parameters for the fields representing the relation in the SQL of
the detail dataset. Try to get rid of the TIBTable, you can use TIBDataset
or TIBQuery, whichever is more confortable for you.
--
Wayne Niddery - Logic Fundamentals, Inc. (www.logicfundamentals.com)
RADBooks: http://www.logicfundamentals.com/RADBooks.html
"It is error alone which needs the support of government. Truth can
stand by itself." - Thomas Jefferson
|
|
| Back to top |
|
 |
James Crea Guest
|
Posted: Thu Aug 21, 2003 10:23 pm Post subject: Re: ADO vs Interbase components |
|
|
"Wayne Niddery [TeamB]" <wniddery (AT) chaff (DOT) aci.on.ca> wrote
Try to get rid of the TIBTable, you can use TIBDataset
| Quote: | or TIBQuery, whichever is more confortable for you.
|
Unlike TIBTable, when I try to modify a record entry (Via FieldByName) in a
While EOF ... Next loop, the TIBDataset does not scan down the list of
records in the dataset. The Cursor stays on the first entry. If the loop is
read only, then the loop will scan down to the EOF. What am I doing wrong?
Thanks
James Crea
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|