It worked great, thank you Alan.

Alan Campin wrote:

What do you mean by a generated key? An identity key? If yes, you can change
the identity to accept the value from an insert operation. Look at By
Default on identity keys in CREATE TABLE or ALTER TABLE.

The only trick is if you insert records using existing keys it does update
the next identity key stored in the table. You need to issue an alter table
and reset the next identity key to be higher than the current highest key.
(look at As Identity Start with).


On Tue, May 31, 2011 at 2:13 PM, Raul A. Jager W. <raul@xxxxxxxxxx> wrote:



I have a file (table) with a generated key, and I added some fields and
reoganized others. Now I want to copy the old file into the new one,
including the generated key. Is it possible? Can I avoid generating new
keys?

TIA
Raúl


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.






This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].