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 » Database insert theoretical design question

Post new topic  Reply to topic
 Database insert theoretical design question « View previous topic :: View next topic » 
Author Message
BDS
PostPosted: Tue Nov 02, 2010 6:35 am    Post subject: Database insert theoretical design question Reply with quote

Newbie

Joined: 21 Oct 2010
Posts: 8

Hello all

All theory and pen chewing at this stage, but I'd be grateful for any pointers on how to go about a inserting data from a single input message into a db.

eg order input message

The physical design being a central table - order that has one-to-many relationships with for example
orderItems table, -stock codes or ordered items held as different rows
customerAddress, -eg holding billing & delivery address as multiple rows

Is this possible to insert directly or is the option to go via a stored proc?
I cannot find examples of primary key lookup and then potential multiple row inserts to multiple tables
Any links, comments please

Cheers
Back to top
View user's profile Send private message
BDS
PostPosted: Tue Nov 02, 2010 12:21 pm    Post subject: Reply with quote

Newbie

Joined: 21 Oct 2010
Posts: 8

have I asked a really dumb question?
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Nov 02, 2010 12:44 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

BDS wrote:
have I asked a really dumb question?


Well maybe, but you've really asked a question that's either answered with "yes" or "it depends".

Can you do multiple row inserts to multiple tables? Yes.
Can you invoke a stored proc to do it? Yes.
Which method should you use? It depends.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
BDS
PostPosted: Wed Nov 03, 2010 1:24 am    Post subject: Reply with quote

Newbie

Joined: 21 Oct 2010
Posts: 8

Thanks Vitor

I knew I could invoke a stored proc, so I'll keep exploring the multiple row inserts to multiple tables.

If anyone has any pseudo or example code to get me started looking int he right areas - appreciated.

Thanks
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 » Database insert theoretical design question
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.