ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » problem with accessing remote database without giving schema

Post new topic  Reply to topic
 problem with accessing remote database without giving schema « View previous topic :: View next topic » 
Author Message
jainsk
PostPosted: Tue Jun 15, 2004 1:58 pm    Post subject: problem with accessing remote database without giving schema Reply with quote

Novice

Joined: 15 Jun 2004
Posts: 13

hi
iam trying to access remote database in the compute node without specifying the schema name. its taking the current user name as the schema name. is there any way i can configure the schema name at run time
Back to top
View user's profile Send private message
fazz
PostPosted: Wed Jun 16, 2004 2:43 am    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

Hello,

You could try using the EVAL function.
i.e. EVAL('SELECT T.COL FROM Database.' || SchemaName || '.TABLE');

Note: The EVAL function has a high performance overhead.
Back to top
View user's profile Send private message
jainsk
PostPosted: Wed Jun 16, 2004 6:00 pm    Post subject: Reply with quote

Novice

Joined: 15 Jun 2004
Posts: 13

fazz wrote:
Hello,

You could try using the EVAL function.
i.e. EVAL('SELECT T.COL FROM Database.' || SchemaName || '.TABLE');

Note: The EVAL function has a high performance overhead.




is there any other way like to set parameters in db2cli.ini file
Back to top
View user's profile Send private message
fazz
PostPosted: Wed Jun 16, 2004 11:53 pm    Post subject: Reply with quote

Centurion

Joined: 20 Feb 2004
Posts: 144
Location: England

I don't know much about the db2cli.ini file, but as far as I understand the SCHEMALIST keyword is there to restrict the schemas used to query tables, not to specify what schema a table belongs to.

Have a look at:

http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/ad/c0007882.htm
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » problem with accessing remote database without giving schema
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.