Board index » delphi » D2: Programatically copying TTables (Paradox)?

D2: Programatically copying TTables (Paradox)?

I have a D2 database app (using Paradox formatted tables) and I want
to implement a database archive/restore function.  Is there a way to
programatically create & copy a TTable and restore it as well?

Thanks.

Mike

------------------------------------------------------
- Mike Bandor  (band...@vitrex.net)
- Software Engineer:    Delphi/Ada/C++/Windows/
-                       Winhelp/JOVIAL/MASM
-                              
- "Trying to manage programmers    
-  is like trying to herd cats!"          
-
- Speaking for myself!  Standard disclaimer applies.
------------------------------------------------------
- Author of MEGATERMS:  Military Terms and Acronyms
- http://www.vitrex.net/~bandorm/megaterm/megaterm.htm
- ftp://vitrex.net/usr/b/bandorm/m-term.zip
------------------------------------------------------

 

Re:D2: Programatically copying TTables (Paradox)?


you could use a batchmove with it set for batcopy (see d2 help)

Re:D2: Programatically copying TTables (Paradox)?


On 28 Apr 1998 00:26:56 GMT, lshepar...@aol.com (LShepardjr) wrote:

Quote
>you could use a batchmove with it set for batcopy (see d2 help)

I would not reccoment BatchMove.  I tried to use it but it does not
copy indexes and constraints (that was on Paradox tables). I ended up
using simple file copying (there is a function to do it in one of the
D2 tutorials).

Phil Smith     p...@nexussft.demon.co.uk     Sometimes G8JSL

--- nexus   ---   a bond or connection   ---

The views expressed are my own and do not comprise opinions of Nexus Design Associates Ltd.

Re:D2: Programatically copying TTables (Paradox)?


In article <35451d1c.2049...@news.vitrex.net>, Mike Bandor <band...@vitrex.net>
writes

Quote
>I have a D2 database app (using Paradox formatted tables) and I want
>to implement a database archive/restore function.  Is there a way to
>programatically create & copy a TTable and restore it as well?

Have you thought of using one of the file compression
components to create a .zip or .arj file. Compressing
tablename.* would catch all the index and other related files.
It will give you two extra plusses - lass space and less time.
I've found that zipping is usually faster than copying.

Pat
--
Pat White
email: p...@pwhite.demon.co.uk
Phone; +44 (0)1925 266113

Re:D2: Programatically copying TTables (Paradox)?


Pat White <p...@pwhite.demon.co.uk> wrote in article
<uMF9mMAA7XW1E...@pwhite.demon.co.uk>...

Quote
> In article <35451d1c.2049...@news.vitrex.net>, Mike Bandor

<band...@vitrex.net>

Quote
> writes
> >I have a D2 database app (using Paradox formatted tables) and I want
> >to implement a database archive/restore function.  Is there a way to
> >programatically create & copy a TTable and restore it as well?

> Have you thought of using one of the file compression
> components to create a .zip or .arj file. Compressing
> tablename.* would catch all the index and other related files.
> It will give you two extra plusses - lass space and less time.
> I've found that zipping is usually faster than copying.

> Pat
> --
> Pat White
> email: p...@pwhite.demon.co.uk
> Phone; +44 (0)1925 266113

Speaking of file compression components, do you know of any that work in
Delphi 1.x?  I've found several for 2.0+, but none for Delphi 1.

Other Threads