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 » Simple database connection (SELECT) to DB2 using ESQL

Post new topic  Reply to topic
 Simple database connection (SELECT) to DB2 using ESQL « View previous topic :: View next topic » 
Author Message
umesh
PostPosted: Sat May 21, 2005 2:28 am    Post subject: Simple database connection (SELECT) to DB2 using ESQL Reply with quote

Novice

Joined: 13 May 2005
Posts: 16

Hi all,

I am trying to connect to a db2 database which is on other machine using SQL in ESQL. I have set up the DSN to the database
and successfully tested connection using "test Connection" in ODBC menu in win2k. I have also saved the password. But when i try to retrieve the values using

SET Environment.Variables.Result[] = (SELECT T.CD FROM Database.CODES as T);

(this always results multiple values)

I am getting exception Database user id and password incorrect. Do i need to set these values before connecting and how do set them?

Thanks,
umesh
Back to top
View user's profile Send private message
Ian
PostPosted: Sat May 21, 2005 4:21 am    Post subject: Reply with quote

Disciple

Joined: 22 Nov 2002
Posts: 152
Location: London, UK

Refer to topic "an07080_" which covers the mqsicreatebroker command, specifically the -u parameter :

Quote:

The user ID with which databases containing broker tables and user data are to be accessed. If this is not specified, it defaults to the value specified by -i.

_________________
Regards, Ian
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sat May 21, 2005 4:26 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

If you are using version 5, you should look at the mqsisetupdbparms command.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
umesh
PostPosted: Sun May 22, 2005 8:41 pm    Post subject: Reply with quote

Novice

Joined: 13 May 2005
Posts: 16

Hi,

thanks for all inputs. setdbparams made it work.

umesh
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 » Simple database connection (SELECT) to DB2 using ESQL
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.