How to disassemble a result set in BizTalk Server 2002 (839455)



The information in this article applies to:

  • Microsoft BizTalk Server 2002

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.

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.

Modification Type:MajorLast Reviewed:11/30/2004
Keywords:kbhowto kbBTSAdapters kbinfo KB839455 kbAudDeveloper