BizTalk Server Applications Integration - Trying to Pull PO data from SQL to go out in biztalk

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > November 2004 > Trying to Pull PO data from SQL to go out in biztalk





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 Trying to Pull PO data from SQL to go out in biztalk
Scot S

2004-11-04, 5:48 pm

I want to pull some PO data out of by sqlserver 2000
and put it into a outbound 850 edi transaction.
Can biztalk periodically look to the database for
this type of data? I'm of the impression that actions
occur in biztalk when it recieves some kind of file... say
an xml file out of sql. I really don't want to have to dump
an xml file from the database like that.... just have a
simple select statement. I've used the sql adapter with a
stored procedure to insert records into the db. But this
is going the other direction.
Hugo Rodger-Brown

2004-11-05, 2:46 am

Actions occur in BizTalk when a message is received, and that may occur
through a file drop or some other mechanism. This is supported through the
use of adapters in receive locations. The SQL adapter that you use in your
send scenario can also be used to receive data (as messages):

From the docs: "The SQL receive adapter is a polling service that
periodically polls for SQL result sets. A SQL command is stored in the
receive location configuration properties and is invoked by the Adapter
Framework scheduler. The SQL receive adapter supports SELECT statements and
stored procedure calls that each return single result sets."

This sounds exactly like what you are looking for. However...

"When using a SELECT statement to poll with the SQL receive adapter, the
receive adapter does not update or otherwise mark the records it retrieves.
The SQL receive adapter will continue to select the same rows according to
the WHERE clause contained within the SELECT statement."

You'll need to update the table / stored proc. to ensure that each
successive poll pulls out the next tranche of data (e.g. mark each lot as
read when the adapter calls the proc).

Look at ms-help://BTS_2004/Operations/htm/ebiz_ops_adapt_sql_esig.htm, or
search the documentation for "SQL receive adapter" for more information.

Hugo
http://hugo.rodger-brown.com


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com