Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy table
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00520181
Message ID:
00520186
Vues:
14
Hi Nick,

Try this:
USE HldXFer_Tbl IN 0 ALIAS OldTable
SELECT OldTable
COPY STRUCTURE TO HldXFer_Tbl DATABASE E:\Payroll\Payroll
USE IN OldTable
Add the WITH CDX clause if you have indexes.

If it has data, then you can:
USE HldXFer_Tbl IN 0 ALIAS OldTable
USE E:\Payroll\Payroll\HldXFer_Tbl IN 0 ALIAS NewTable
SELECT NewTable
APPEND FROM OldTable
USE IN NewTable
USE IN OldTable
to copy the data from the old table to the new one.

HTH

>I am trying to find way to copy an existing table (has no indexs, no data) to another program with the same name. For example I have a payroll.dbc with a table call hldxfer_tbl on my network drive in a folder called payroll. I want to copy this table to my e: drive that also has a payroll.dbc in folder call payroll. I tried to copy the table in explorer but it said that the table belongs to different dbc. How do you get an identical table from one dbc to another?
>
>THanks
>Nick
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform