Re: Sql adapter using SP - insert parent-child with a nextnumber-key

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Well first I'd like to say good work on part one. I would advise you
do this without making multiple round trips to the SQL Adapter. I
assume your calls right now are batched and sent as one message (which
they should be).

I know one way I’ve gotten around this exact same problem was to
simply send the xml to one stored procedure and use OPENXML within SQL
Server to flatten it into tables (and call other SPs / Functions).
This would effectively be putting a controller into the process in the
form of a stored procedure.

Otherwise you could make the call to get the Next Number before you
send this batch of SQL commands and use the result (assigned in a map
or something) to prepare your insert message. Be sure to reuse the
same port if you end up making the second call. The wizard always
wants to create a new one.

Kind Regards,
-Dan
.



Relevant Pages

  • RE: SQL Adapter Polling problem. Locks up SQL Server
    ... review the page titled "Best Practices for using the SQL Adapter", ... Locks up SQL Server ... The stored procedure checks ...
    (microsoft.public.biztalk.general)
  • Boolean values and SQL Adapter
    ... I'm using the SQL Adapter to call a stored procedure in my SQL Server ... Error converting data type nvarchar to bit ...
    (microsoft.public.biztalk.general)
  • SQL Adapter Setup
    ... VS project, select the SQL Adapter, enter the db server ... element names, select the stored procedure, specify the valuepassed, ...
    (microsoft.public.biztalk.general)
  • SQL Adapter Wizard Error
    ... I'm trying to configure the sql adapter for stored procedure using the SQL ... the SQL Server Database with the stored procedure is runnig on a remote ... I've followed the steps in the article "Using the SQL Adapter with a Stored ...
    (microsoft.public.biztalk.general)
  • Re: A Tale of Two Schemas (A tale of woe)
    ... > stored procedure. ... > the SQL Adapter. ... My guess is that the problem is not related only to the schema node, ...
    (microsoft.public.biztalk.general)