BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Re: ADO vs Interbase components

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Wayne Niddery [TeamB]
Guest





PostPosted: Sat Aug 16, 2003 3:38 pm    Post subject: Re: ADO vs Interbase components Reply with quote



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





PostPosted: Tue Aug 19, 2003 8:09 pm    Post subject: Re: ADO vs Interbase components Reply with quote



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





PostPosted: Wed Aug 20, 2003 12:45 am    Post subject: Re: ADO vs Interbase components Reply with quote



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





PostPosted: Thu Aug 21, 2003 10:23 pm    Post subject: Re: ADO vs Interbase components Reply with quote


"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.