Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Database update, best practices
Message
From
25/01/2002 10:10:01
 
 
To
25/01/2002 10:03:09
Carol Dewar
Magram Computer Services Llc
Saugerties, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00610172
Message ID:
00610460
Views:
21
This is also how we do it. We have a utility that is run on our clients machines everytime we do an update of the tables and it performs these steps. We move the tables to an archive directory and name the tables with a name/datetime stamp though BEFORE we append from them into the new tables. We have a utility that we run on existing tables and it creates a prg for us that has a procedure to create the table and one to create the indices. That prg is then used in our update programs.
Tracy

>Hmmm,
>So we can, after copying everything to the backup directory:
>Replace all of the client's database/tables with empty, updated database/tables from the library.
>Run the generate client dictionary and structure compare code to log all the changes.
>DOS COPY tables, for no hits. APPEND FROM (and initialize if needed) for any hits in a table.
>
>We have no Database considerations.
>This is like my 1st senario only less complex.
>Have you automated this? done this remotely? Any "Lights out" problems? considerations?
>Thanks,
>Carol Dewar
>
>>Well, what I do is keep an empty structure of the database (+ tables), copy everything to a temp directory, and issue APPEND FROM for each table. Additional considerations: 1) in the case of RI, the parent table has to be copied before the child tables. Otherwise (if the third RI column is "R") you get "trigger failed". 2) to speed things up, I do a detailed comparison of table structures. If the structures are identical, the table is copied with the COPY command.
>>
>>HTH, Hilmar.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform