" (Colin Acheson)" wrote:
> Yes, you probably should be using aliases as they will save you from
> having to hard-code directory names.
> In Paradox, each table is a separate file (*.db). It may have several
> related files such as an index (*.px), memo file (*.mb) etc. All of
> the tables and their related files in any particular directory can be
> thought of as a database. When you create an alias, you specify its
> driver type (Paradox) and the directory that it points to. So an
> alias can also be regarded as pointing to a database.
> If there are only one or two TQuery components in an application, you
> might create an alias (with BDE administrator) pointing to the
> directory where your Paradox tables reside. Then you could set the
> "DatabaseName" of each TQuery to that alias, either in code or by
> selecting it using the dropdown box in the object inspector.
> Alternatively, you could omit the alias and use the directory's full
> pathname as the "DatabaseName" of the TQuery compnents.
> Then you write your sql just as in SQL Server. i.e. Select * from
> tablename. (where tablename is the name of the paradox table. There
> is no need to include the .db extension - it is optional)
> If there are more than a couple of TQuery or Ttable components, you
> can use an TDatabase component to manage their connection to the
> database. Set the AliasName of the TDatabase to the BDE alias that
> points to your Paradox tables. Then set the DatabaseName of the
> TDatabase to something descriptive, say "COMPANYDB". In this case,
> you would then set the "DatabaseName" property of all the TQuery
> components to "COMPANYDB". Now you have the advantage of being able
> to change the database that all the components point to just by
> setting the AliasName of a single TDatabase component.
> Concerning visibility of updates, see the topic
> TDatabase.TransIsolation in the help.
> I have to question why you chose Paradox? I am not knocking it but
> it is nearing the end of its lifespan. Although it is reliable
> enough once you learn its quirks, it is not in the same league as a
> true client/server database. Since your experience is with MS SQL
> Server, have you considered Interbase. It is a true client/server
> database with performance comparable to SQL Server but with a much
> smaller footprint, almost maintenance-free and runs on Linux, Windows
> and Solaris. It is open source and available for free download from
> http://www.borland.com/interbase/
> You can connect to it via the BDE or ODBC or you can use the free IBX
> components to eliminate the BDE and access it directly. ADO drivers
> are also becoming available and, unlike Paradox, it will be supported
> by Borland's new DBExpress technology in Kylix and Delphi 6.
> regards
> Colin Acheson
> On Wed, 28 Feb 2001 15:04:50 +1100, Anthony Gilbert
> <anthony.gilb...@rmit.edu.au> wrote:
> >Hi All,
> >I have a couple of queries about paradox databases and tables and how
> >they relate to each other and how you use them. My previous experience
> >with Delphi and database programming is all using MS SQL-Server. In
> >these cases, the database is rather monolithic and the tables are part
> >of that but with Paradox there seems to be a collection of tables with
> >little apparent connection between them. (Hence the titel of the post. I
> >did not mean to imply that Paradox was not a worthy database.)
> >I am using Paradox tables but I do not have Paradox installed. I have
> >re-installed Delphi and I now have the Database desktop which helps. I
> >have made a few tables using the DD and I need to be able to read from
> >and write to them in code and I have a couple of queries about how the
> >BDE finds and manages tables.