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 » Upsert via graphical map

Post new topic  Reply to topic
 Upsert via graphical map « View previous topic :: View next topic » 
Author Message
5koff
PostPosted: Sun Jun 23, 2013 12:38 pm    Post subject: Upsert via graphical map Reply with quote

Newbie

Joined: 23 Jun 2013
Posts: 8

Hi guys,

can you give me an advice how to do an "upsert" of a DB record via graphical map.
As an input of the map i have a list of objects, each having ID, an I have to update the existing DB records and insert the others.

Any help would be appreciated!

Thanks in advance,

Mitko
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jun 24, 2013 3:18 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Use a database node. Thats what database nodes do.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
5koff
PostPosted: Mon Jun 24, 2013 3:25 am    Post subject: Reply with quote

Newbie

Joined: 23 Jun 2013
Posts: 8

We are using MWB 8 Express. So usinq esql in subflows just does not work .

Although i found an "insert" option amongst the DB update properties in a graphical map. It tries to insert the row if the where clause of the update evaluates to false. I am just about to test does it work properly.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Mon Jun 24, 2013 3:28 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Sounds like you need a different edition. Free is great; but you need pay-for. Free is for demo; pay-for is for working functionality.

My Filipino friend often says: "Your credit is good with us, but we need cash."
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
5koff
PostPosted: Mon Jun 24, 2013 3:48 am    Post subject: Reply with quote

Newbie

Joined: 23 Jun 2013
Posts: 8

Well, if the best way to do an upsert is collect money for advanced mode, then let it be.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 24, 2013 8:02 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The v8 GDM has both an Insert function and an Update function.

You can use a for to loop over each row. You can use an IF to find out if an update works, and then do an insert if it doesn't.

The same as you would do in any other programming language.
Back to top
View user's profile Send private message
mgk
PostPosted: Mon Jun 24, 2013 8:19 am    Post subject: Reply with quote

Padawan

Joined: 31 Jul 2003
Posts: 1642

Quote:
"Sounds like you need a different edition. Free is great; but you need pay-for. Free is for demo; pay-for is for working functionality. "


This is incorrect. The Express version of WMB is NOT free. It is a paid for edition and is fully supported. The Trial version (now called Developer Edition) is the free version.

Kind regards,
_________________
MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions.
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 » Upsert via graphical map
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.