Making copy of a table

Catalina

Registered User.
Local time
Yesterday, 16:06
Joined
Feb 9, 2005
Messages
471
Sometimes extensive updates have to be made to a table using an update query or loop through a record set.

In order to be able to undo changes in case of a mistake I am thinking about the following procedure:

In code:
1 - Make a copy of the table

2 - Make the changes in the original

3 - Check if updates are correct and if so: delete the copy and if not:
delete the default table and rename the copy so it will be the original.

Is that common practice or not?

Thanks
 
Maybe you should explain what you mean by "...extensive updates...". As a side note, your way will cause extensive bloating and you will need to be constantly compacting your database.
 
you could just try exporting the table to a separate back-up database, run your updates and then you're able to import back in if need be.

David
 

Users who are viewing this thread

Back
Top Bottom