BizTalk Server Orchestration - SQL Adapter - Check before insert

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > December 2004 > SQL Adapter - Check before insert





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SQL Adapter - Check before insert
Sents

2004-12-08, 7:47 am

Hi,

In my orchestration, i have to send some data(100 fields) to one table
called X. Before sending this i have to check whether the data exists in the
table or not(18 fields). If not exists then insert it in x table.

How to do this in optimized way using SQL adapter

Thanks
Sents
Matt Milner

2004-12-09, 2:48 am

You could send the XML as a blob to SQL and then do insert/update logic
using OPENXML in the stored procedure to insert new rows and update existing
ones. I've got a sample on my blog that shows how to pass XML as a
parameter to a stored procedure.

matt
http://www.m3technologypartners.com/blogs/


"Sents" <Sents@discussions.microsoft.com> wrote in message
news:493AE61D-C859-4FDE-89F0-5F2D5A8748B6@microsoft.com...
> Hi,
>
> In my orchestration, i have to send some data(100 fields) to one table
> called X. Before sending this i have to check whether the data exists in
> the
> table or not(18 fields). If not exists then insert it in x table.
>
> How to do this in optimized way using SQL adapter
>
> Thanks
> Sents



Sents

2004-12-09, 7:46 am

Thanks Matt. I will try this.

I have made a return value field as distinguish field . How will i access in
decide shape.
It gives as Mutiresmsg.parameters thats it. it is not displaying field.??

Regards
Senthil

"Matt Milner" wrote:

> You could send the XML as a blob to SQL and then do insert/update logic
> using OPENXML in the stored procedure to insert new rows and update existing
> ones. I've got a sample on my blog that shows how to pass XML as a
> parameter to a stored procedure.
>
> matt
> http://www.m3technologypartners.com/blogs/
>
>
> "Sents" <Sents@discussions.microsoft.com> wrote in message
> news:493AE61D-C859-4FDE-89F0-5F2D5A8748B6@microsoft.com...
>
>
>

Matt Milner

2004-12-09, 8:48 pm

You have to do MPMessage.partname.distinguishedFieldName. This should give
you what you need.

matt


"Sents" <Sents@discussions.microsoft.com> wrote in message
news:89C26C45-A32E-42DF-BB7C-3E7A18E24E86@microsoft.com...[vbcol=seagreen]
> Thanks Matt. I will try this.
>
> I have made a return value field as distinguish field . How will i access
> in
> decide shape.
> It gives as Mutiresmsg.parameters thats it. it is not displaying field.??
>
> Regards
> Senthil
>
> "Matt Milner" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com