BizTalk - using 2 send ports one for updategram and one for stored procedure without parameters

Asked By p c
03-Feb-10 01:06 AM

hi all,

  I have been breaking my head on this issue for last 4 days without any luck, any help is greatly appreciated

I have a flat file which I  am reading and inserting into sql server using Updategram. and then once that data is inserted into the database, I need to execute a stored procedure from biztalk to break the data into respective details tables inside the database.

I have a Receive Port to read flat file

i have a send prot to insert flat file data usign updategram into the database

i need a send port to execute a stored procedure from biztalk once the insert flat file step is performed.

I dont have to return or accept any parameters in the stored procedure(just need to execute it from biztalk once the insert send port triggers)

thanks

 

 

 

 

  Sandra Jain replied to p c
03-Feb-10 01:28 AM
Ok. Please ensure if this provides the required workaround for your problem.

Though we can make use of triggers in this scenario, a simple orchestration might seem an effective alternative. Or use the below two approaches:

First:

The mappings and orchestrations required to load data into SQL through updategram can very well be done in the same stored procedure that you need to execute later. This way we can make sure that the SP is executed soon after the update process.

Second:

Also you can implement the AFTER UPDATE trigger to achieve this. See link for reference:

http://publib.boulder.ibm.com/infocenter/iseries/v5r3/index.jsp?topic=/sqlp/rbafyaftersql.htm
  p c replied to Sandra Jain
03-Feb-10 01:42 AM

thankyou for your prompt response, but my scenario demands me to do everything in biztalk - either using pipeline or map or ochestration.

and I have seen an example where someone is already doing this and I tried to implement the same but somehow the first send port for updategram works , but the second send port which has the execute stored procedure method doesnt fire.

http://www.markscott.net/post/2008/01/25/Executing-a-stored-procedure-via-BizTalk-with-no-parameters.aspx

this link has the exact example i am looking for inspite , its not wrking for me.

any help is greatly appreciated.

thanks

Create New Account
help
Error message from SQL adapter Windows Server I have a two-way send-receive SQL BizTalk port (BizTalk 2006). This port executes a stored procedure (SQL Server 2005). This stored procedure returns the content of a column of type 'text'. Sending a request to the sql port triggers the following error from BizTalk: A message sent to adapter "SQL" on send port "RequestToSQLPort" with URI "SQL: / / localhost / MyDB suspended. Error details: HRESULT = "0x 7a" Description = "No error description provided" After having edited the stored procedure so that the text column is converted to a local varchar(8000) variable and
Biztalk Stored Procedure problems with NULL value Hi All, In my Biztalk(2004) Orchestration, I use a stored procedure to update some tables in a database hosted by SQL Server 2003. The input of
Calling Stored procedure without parameters in BizTalk using SQL Adapter Hi I know how to use a SQL adapter calling a stored procedure with parameters from Orchestration, but how to call stored procedure without parameters when I generate metadata for the stored procedure I m just gettin the request root node so my question is do I
xml DATA FROM ORCHESTRATION to stored procedure xml parameter Windows Server i want to pass xml DATA FROM ORCHESTRATION to stored procedure xml parameter. I want to copy xml tree from source message to Stored procedure xml parameter. My problem is that mass copy cannot be assigned to a attribute field While generated scheama wizard makes parameters of stored procedure as an attribute. So how can i copy the xml into a generated schema xml
Calling parameterized SQL Stored Procedure through Orchestration Windows Server I want to call stored procedure with simple SELECT query [in loop] from orchestration which takes an input parameter [say customerCode am not aware of the way wherein I can pass the variable parameter to my stored procedure. I call the stored procedure in loop [say 5 times] and each time I call the SP I need to