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 » How to pass tnsname in to ESQL INSERT statement?

Post new topic  Reply to topic
 How to pass tnsname in to ESQL INSERT statement? « View previous topic :: View next topic » 
Author Message
pathipati
PostPosted: Mon Jun 18, 2007 7:56 pm    Post subject: How to pass tnsname in to ESQL INSERT statement? Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

INSERT INTO Database.TABLE1(MSGDATA) VALUES (msgBitStream);
in to above statement what is the format to give serverName:portNumber:sid? (tnsname)
Back to top
View user's profile Send private message Yahoo Messenger
elvis_gn
PostPosted: Mon Jun 18, 2007 9:02 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi pathipati,

And why would you like to give the tns details in the flow ? Do you expect it to change dynamically or something ? I don't think you can do that..Plz tell us your requirement...

Regards.
Back to top
View user's profile Send private message Send e-mail
jefflowrey
PostPosted: Tue Jun 19, 2007 3:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

All database access, except what you write yourself in a Java compute node, is done using ODBC.

In ODBC, the tnsname is saved in the datasource - and your code merely references the datasource name.

Welcome to Broker, please read the documentation...
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
pathipati
PostPosted: Tue Jun 19, 2007 8:34 am    Post subject: Reply with quote

Master

Joined: 03 Mar 2006
Posts: 296

the reason is I am expecting to pass in tns information to my message flow manually/dynamically. I don't have a requirement but I just want to make sure if I can do this or not.
Back to top
View user's profile Send private message Yahoo Messenger
jefflowrey
PostPosted: Tue Jun 19, 2007 8:37 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You can not dynamically create an ODBC datasource in Message Broker.
_________________
I am *not* the model of the modern major general.
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 » How to pass tnsname in to ESQL INSERT statement?
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.