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: Help with converting from BDE to Interbase

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases
View previous topic :: View next topic  
Author Message
Aage Johansen
Guest





PostPosted: Thu Jan 08, 2004 8:04 am    Post subject: Re: Help with converting from BDE to Interbase Reply with quote



På Sun, 4 Jan 2004 21:13:33 +0200, skrev Me <fromb (AT) telkomsa (DOT) net>:

Quote:
It has been a while since I have asked a question here. I'm only an
amateur
Delphi programmer and still have a lot to learn so sorry for asking what
might be stupid questions to some of you. I am busy converting a program
in
which I originally used the BDE to use Interbase instead. My questions;

Good move! Which components did you change to?


Quote:
1.. With BDE I used "DbiSaveChanges" to immediately save changes, what
command can I use to do the same in Interbase?

There's no need.
But, you should use 'forced write', and see to it that you manage your
transactions properly.


Quote:
2.. I also used "bdeutils.PackTable" to permanently delete entries in
the
database , is there an equivalent command for Interbase?

There's no need.
If you really would like to 'compact' the database you need to do a backup
followed by a restore.


Quote:
3.. I used "setindex" to temporary sort a database into a different
order
for viewing, how can I temporary sort in Interbase?

With Client/Server db's you should not use TTable technology. Use
Queries, with an 'order by' clause when you want a sorted result set. In
general I would use indexes for SELECTING data, and avoid indexes for
SORTING.


Quote:
4.. Is there a way to import the data from a BDE database to an
Interbase
database without having to type it all in manually?

There are several datapumps available, I think. Maybe something is
provided with Delphi (I don't remember). You may find a lot of help here:
http://www.ibphoenix.com/ - see the "Downloads" pages. Most utilities
that work for Firebird should also work for Interbase.


--
Aage J.

Back to top
pr
Guest





PostPosted: Thu Jan 08, 2004 5:59 pm    Post subject: Re: Help with converting from BDE to Interbase Reply with quote




"Me" <fromb (AT) telkomsa (DOT) net> wrote

Quote:
It has been a while since I have asked a question here. I'm only an
amateur
Delphi programmer and still have a lot to learn so sorry for asking what
might be stupid questions to some of you. I am busy converting a program
in
which I originally used the BDE to use Interbase instead. My questions;



1.. With BDE I used "DbiSaveChanges" to immediately save changes, what
command can I use to do the same in Interbase?

None, it is superfluous. Remove these statements.
Set "Forced Writes" in the IB configuration to true
and the DB will be updated as soon as you commit.

Quote:
2.. I also used "bdeutils.PackTable" to permanently delete entries in
the
database , is there an equivalent command for Interbase?

No, deleting an entry actually removes it form the DB when you commit.

Quote:
3.. I used "setindex" to temporary sort a database into a different
order
for viewing, how can I temporary sort in Interbase?

CS databases have no inherent sort order. Sort when you get the data
from the DB using an 'order by' clause. You will have to close
and reopen the Query to change your ordering.
IB is clever enough to use an index when it is there and useful.

Quote:
4.. Is there a way to import the data from a BDE database to an
Interbase
database without having to type it all in manually?

There is "DataPump". A bit difficult to get all the settings right,
but once you have figured that out it works very well.

And remove all the TTable business from IB. Once done, it will
make your life easier and your DB access many times faster.

PR






Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.databases 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.