Marc:  I just tried it here and I get the same error message, that the
referenced table does not exist.  So I think FKs are not allowed on
temp tables.

But I'm with other posters -- I have never even thought of creating an
FK on a temp table.  Since you obviously need to write code to do
something with the temp table, just write one line of code that checks
that the FK data is in the PK table.

Karen

 
> I did Unload structure for InvoiceHeader in RRBYW14
> Change the table name to IHTemp then ran the code below.
> I get errors when Adding the FK's
> 
> Either I am missing the nose on my face or FK's are not allowed on Temp 
> Tables?
> Marc

Reply via email to