cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Having trouble with using multiple local database query

Former Member
0 Likes
3,460
drop server remote_db2;

CREATE SERVER remote_db2
CLASS 'saodbc'
USING 'db2'; // so far so good, no error

CREATE EXISTING TABLE zProxy_pf_DailyValuation_Summary_by_Grp
/* AT 'remote_db2.dba.pf_DailyValuation_Summary_by_Grp'; // not found, so try next */
at 'remote_db2.dba.pf_DailyValuation_Summary_by_Grp';   / also not found

the error message was: Could not execute statement. Remote server '' could not be found SQLCODE=-659, ODBC 3 State="HY000" Line 9, column 1

what did I do wrong?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

thx.

I just failed to use dsn as part of using parameter. I ended explicitly specify all required values including dbkey value surrounded by double quotes to valid trouble with the single in the dbkey value.

that got me pass the create server statement. Finally executed the query per suggestion without trouble.

thx again