tags:

views:

26

answers:

1

Hi,

is something like this possible in SQL/DB2?

INSERT INTO Prod.CD_Final (ID) VALUES (SELECT ID FROM Test.CD_Final);

I alway get the error message: "Prod.CD_Final" is an undefined name. SQL Code: -204, SQL State: 42704 "Test.CD_Final" is an undefined name. SQL Code: -204, SQL State: 42704

Thanks, Stefan

A: 

I think the two dbs need to be Federated I think. See here

Preet Sangha
It's possible to create the synonym, but ater that I get the same Error message.
Stefan