Re: One message should result into inserts into several sql-tables
- From: isabelledc <isabelledc@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 19 Nov 2008 03:37:02 -0800
Thank You for Your reply.
But I'll have to use several stored procedures it seems.
Since there is a header-line structure (where line is repeating)
It works if I have a schema with 2 nodes , 1 for inserting headerinfo and
and another one for lines. (that schema I have manually put together
cutting/pasting from generated schemas:-)
I can then use the unbounded feature on the insertline-node to insert several
lines at once without having to loop in some way.
Don't know how I could do that if both inserts are in the same SP?
Even when using two SP's there seems to be no problem for working
transactionally, if inserting of line fails , header isn't created ... so
seems fine
(even without using transaction in the SP)
Isabelle
"Saravana Kumar [MVP]" wrote:
Create a stored procedure in SQL which will take care of multiple inserts.
(you can also make it transactional that way).
Call the stored procedure from BTS using SQL Adapter.
You need to design you schema in the way you capture all the required data.
--
Regards,
Saravana Kumar [MVP - BizTalk Server]
http://www.biztalk247.com/v1/
http://blogs.digitaldeposit.net/saravana/
"isabelledc" <isabelledc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:3B686754-D786-4691-8E2D-FE674565CF65@xxxxxxxxxxxxxxxx
Hello,
we have a project where we will receive one message from application A and
the
receiving application B expects the data it has to process in several
SQL(interface)tables.
(fe headertable, linetable,triggertable,itemtable)
What's the best way to go about this in biztalk 2006 R2?
I haven't used the sql-adapter untill now so I don't know what's possible
or
the best way to use.
Inserting into one table , that I could handle but how to work when
inserts
need to happen in several tables?
(oh by the way , i haven't used sql-adapter but I know I want to work
with
stored procedures as much as possible)
Thanks for your reply.
Isabelle
- Follow-Ups:
- Re: One message should result into inserts into several sql-tables
- From: Dan Rosanova
- Re: One message should result into inserts into several sql-tables
- References:
- One message should result into inserts into several sql-tables
- From: isabelledc
- Re: One message should result into inserts into several sql-tables
- From: Saravana Kumar [MVP]
- One message should result into inserts into several sql-tables
- Prev by Date: Re: Calling WCF service from Orchest. returns time out?
- Next by Date: Re: flowing credentials through biztalk
- Previous by thread: Re: One message should result into inserts into several sql-tables
- Next by thread: Re: One message should result into inserts into several sql-tables
- Index(es):
Relevant Pages
|