G
GPE
Hi all,
We have a multi-user database where the primary key is set to a meaningful
text field. For many years, we have been happy with this and we never
expected that the primary key values would have to be changed. Now however,
there have been changes in gazetteer codes and as a consequence, the primary
key values in the main table and a few related tables in our database will
have to be changed. My question is: is it OK to change these values with a
series of update queries while keeping the primary key set on those table
columns? (To avoid problems, we will run the update queries when no one else
is logged onto the database, and after a backup of course.) Or should I
temporarily take out the primary key and set it again after the updating is
done? Has anyone else experience on this kind of tasks?
Thanks
We have a multi-user database where the primary key is set to a meaningful
text field. For many years, we have been happy with this and we never
expected that the primary key values would have to be changed. Now however,
there have been changes in gazetteer codes and as a consequence, the primary
key values in the main table and a few related tables in our database will
have to be changed. My question is: is it OK to change these values with a
series of update queries while keeping the primary key set on those table
columns? (To avoid problems, we will run the update queries when no one else
is logged onto the database, and after a backup of course.) Or should I
temporarily take out the primary key and set it again after the updating is
done? Has anyone else experience on this kind of tasks?
Thanks