Answered by:
does WCFSQL adapeter supports returing mutiple result sets returened from Stored procedure

Question
-
Hi
I have a scenario- from BizTalk i need to call stored procedure.s
GetOrderDetailsByOrderId stored procedure returns the order details and list of line item details for that order.
This Stored Procedure i want to consume in BizTalk. Does BizTalk support retrieving records from database.
Wednesday, October 21, 2015 6:00 PM
Answers
-
Yes ,You can get multiple result set depending on what your sql stored procedure is returning as an output .
When you run through the WCF- SQL schema wizard it generates xsd schema for the resultant set instead of single row of data . So you don't need to worry much about this .BizTalk WCF SQL adapter internally manages it .
Thanks
Abhishek
- Marked as answer by Ammu_Biz Friday, October 23, 2015 5:15 PM
Thursday, October 22, 2015 6:38 AM -
YES, it does.
Just run the metadata Wizard against that Stored Procedure and you'll see there will be two result sets under the response node.
- Marked as answer by Sandro PereiraMVP, Moderator Thursday, October 22, 2015 8:31 PM
Wednesday, October 21, 2015 6:55 PMModerator
All replies
-
Hi Ammu4biz,
Thank you for posting in MSDN forum.
Yes, you can retrieve multiple records using SP. Please use WCF-SQL adapter for the operation.
I would suggest please have a look into below article for some help,
BizTalk Server: WCF-SQL Adapter Table Operations
BizTalk 2010 XML Polling with WCF-SQL Adapter
Insert with WCF-SQL-Adapter BizTalk 2010
BizTalk - simple WCF tutorial for using a stored procedure
BizTalk Server 2010 - Using the WCF-SQL adapter to make multiple stored procedure callsThanks, If my reply is helpful please mark as answer or vote as helpful.
- Proposed as answer by [Kamlesh Kumar]Moderator Thursday, October 22, 2015 5:47 PM
Wednesday, October 21, 2015 6:36 PMModerator -
YES, it does.
Just run the metadata Wizard against that Stored Procedure and you'll see there will be two result sets under the response node.
- Marked as answer by Sandro PereiraMVP, Moderator Thursday, October 22, 2015 8:31 PM
Wednesday, October 21, 2015 6:55 PMModerator -
Yes ,You can get multiple result set depending on what your sql stored procedure is returning as an output .
When you run through the WCF- SQL schema wizard it generates xsd schema for the resultant set instead of single row of data . So you don't need to worry much about this .BizTalk WCF SQL adapter internally manages it .
Thanks
Abhishek
- Marked as answer by Ammu_Biz Friday, October 23, 2015 5:15 PM
Thursday, October 22, 2015 6:38 AM