> Why don't I use IMPORT/EXPORT? Because a lot of tables have IDENTITY
> GENERATED ALWAYS, so I have conflicts in IDs when I load exported
> data. Also, db2move tool allows only 10 table names to be specified at
> a time...
Why don't you use LOAD instead of IMPORT. It is faster and can handle
generated columns just fine.
Also IIRC you can drop (and add) the identity property in DB2 8.2.
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Lennart - 18 Apr 2008 10:21 GMT
> > Why don't I use IMPORT/EXPORT? Because a lot of tables have IDENTITY
> > GENERATED ALWAYS, so I have conflicts in IDs when I load exported
[quoted text clipped - 5 lines]
>
> Also IIRC you can drop (and add) the identity property in DB2 8.2.
Slightly offtopic, but ... I assume IDENTITY GENERATED ALWAYS is
implemented via a sequence, correct? If so, is it possible to
determine which sequence that is used for a table?
/Lennart
Serge Rielau - 18 Apr 2008 12:24 GMT
> Slightly offtopic, but ... I assume IDENTITY GENERATED ALWAYS is
> implemented via a sequence, correct? If so, is it possible to
> determine which sequence that is used for a table?
SYSCAT.COLIDENTATTRIBUTES.SEQID
Cheers
Serge

Signature
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Lennart - 18 Apr 2008 18:10 GMT
> > Slightly offtopic, but ... I assume IDENTITY GENERATED ALWAYS is
> > implemented via a sequence, correct? If so, is it possible to
[quoted text clipped - 8 lines]
> DB2 Solutions Development
> IBM Toronto Lab
Thanx
/Lennart
Lennart - 18 Apr 2008 13:12 GMT
> > Why don't I use IMPORT/EXPORT? Because a lot of tables have IDENTITY
> > GENERATED ALWAYS, so I have conflicts in IDs when I load exported
[quoted text clipped - 3 lines]
> Why don't you use LOAD instead of IMPORT. It is faster and can handle
> generated columns just fine.
Don't know what happened to my post. Here it goes again. I assume
identity columns are implemented using a sequence (correct?). If so,
is it possible to determine which sequence that is connected to a
identity column?
/Lennart