Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

How to disassemble a result set in BizTalk Server 2002


View products that this article applies to.

Introduction

You can put the output of an SQL query in a separate XML file by using the Disassemble Result Set option in SQL Adapter. You can do this instead of putting the output of an SQL query in one large XML file that contains many records. You can do this in Microsoft BizTalk Server 2002.

↑ Back to the top


More information

To disassemble a result set, use the SQL Receive Location component with the XML receive pipeline. Alternatively, you can use a custom pipeline that contains the XML Disassembler pipeline component. To divide the schema that is created by the Add Generated Items Wizard into two schemas, follow these steps:
1.Create an envelope schema that contains the root element of the result data.
2.Create an <any> element schema.
3.Set the <any> element schema namespace equal to "##any."
4.Set the <any> element schema that is named processContents equal to "lax."
5.Modify the generated schema to remove the root element.

Notice that everything moves up one level.
6.Set the Body XPath property of the root element equal to itself.
Important Make sure that the envelope schema and the document schema have the same target namespace.

↑ Back to the top


Keywords: KB839455, kbbtsadapters, kbinfo, kbhowto

↑ Back to the top

Article Info
Article ID : 839455
Revision : 1
Created on : 11/30/2004
Published on : 11/30/2004
Exists online : False
Views : 228