<sa********@gmail.com> wrote in message
news:11*********************@j52g2000cwj.googlegro ups.com...
Hi,
I have tables created in my DB2 database created under a schema. Now i
want to get connected to these tables with a username different from
this schema name from my java application. When i give the user name in
my JDBC connection parameters, Its appending this username to the
tables like username.tablename and thorws exceptions as the tables does
not exists. How can i resolve this?? Help me!!!
Thanks in advance,
Sastry.
Any of these should work:
1. Use the set schema statement
2. Fully qualify the table names in your code (select from
schema.table-name)
3. create an alias for each table