Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > MICROSOFT DATABASES APLICATIONS (NNTP) > Copy table structure and key fields
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 15th June 14:33
philipp crocoll
External User
 
Posts: 1
Default Copy table structure and key fields



Hallo,
I want to remove some records from a Table A (which can be ANY table of my
database) to a Table B in rivate:-alias, but Table B does not yet exists.
This means, I have to create a table with the same structure. I also need to
have the key field(s) in the new table, but Table B should not have
look-up-tables anymore. (Because this makes problems as B is in another
alias than A).

What's the best way to do this? The only way I see is to use a create-sql
(but i do not know how to find out the key fields in a table). Shouldn't
there be an easier way?

Thanks,
Philipp
  Reply With Quote


  sponsored links


2 15th June 14:33
ed nash
External User
 
Posts: 1
Default Copy table structure and key fields



Phillip,

Look at ObjectPAL help for enumFieldStructure and the example code.
  Reply With Quote
3 15th June 14:33
carolyn wendover
External User
 
Posts: 1
Default Copy table structure and key fields


If you run a delete query you will end up with a table called Deleted in
your private directory with the same field structure as the original and
containing the records you deleted. Rename this to the table you want and
re-add the indexes. If you do not rename the table, it will be
automatically deleted by Paradox when you end the session.

HTH,
Carolyn
  Reply With Quote
4 24th June 03:32
michael israel
External User
 
Posts: 1
Default Copy table structure and key fields


Table, Create, Borrow (from table A), Check files that you want included
(e.g. secondary indices, val, lookup).
Easy.
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666