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 » General IBM MQ Support » trigger on the queue to start a SQL Server stored pro

Post new topic  Reply to topic
 trigger on the queue to start a SQL Server stored pro « View previous topic :: View next topic » 
Author Message
Viy
PostPosted: Wed May 10, 2006 5:39 am    Post subject: trigger on the queue to start a SQL Server stored pro Reply with quote

Newbie

Joined: 10 May 2006
Posts: 3

I will need to have some changes done to MQ Queue for my application. We need to set up a trigger on the queue that will start a SQL Server stored procedure and pass the IPT information as a parameter to the procedure. Can you pls give me some in put on this?. I am new to MQ.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 6:12 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

You have to write a program that will read the message on the queue, gather whatever information you need from the message, and connect to SQLServer and call the stored procedure with the information it needs.

Then you can configure the queue to trigger your program.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Viy
PostPosted: Wed May 10, 2006 6:27 am    Post subject: Reply with quote

Newbie

Joined: 10 May 2006
Posts: 3

Hi jefflowrey,

Can you pls tell me the best scripting language to use?. Do you have, any examples for this kind of problem?. I try to search, I did not find one.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 6:42 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There is no "best" scripting language.

Please do your own work, thanks.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed May 10, 2006 6:44 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Viy wrote:
Hi jefflowrey,

Can you pls tell me the best scripting language to use?. Do you have, any examples for this kind of problem?. I try to search, I did not find one.
What languages do you know? it seems that any language that is able to call a stored procedure should do.... (c, c++, java, perl, php, cobol, c# ......)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Viy
PostPosted: Wed May 10, 2006 6:59 am    Post subject: Reply with quote

Newbie

Joined: 10 May 2006
Posts: 3

C , Java and PERL
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed May 10, 2006 7:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Then for you, the "best" languages are C, Java, and Perl.

There are easily findable samples for each of those languages that show how to interact with MQ.

I assume there are also samples for each of those languages that show how to interact with a database, which should not change much for calling a stored procedure.

Putting the two things together is also easily done.
_________________
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 » General IBM MQ Support » trigger on the queue to start a SQL Server stored pro
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.