SQL Bulk Load adapter

While creating the EDI Warehouse, for EDI files that were large (10mb transactions), I was seeing 1 of two things with the SQL Adapter:

  1. Out of memory exceptions
  2. Taking hours to load data with high sql server usage

In opening a ticket with Microsoft to discover that the SQL adapter casts the message to a string in a certain part of the code, I knew that I could not use it for consistent high volume usage.

I created a Bulk XML Load adapter that accomplishes in 1 minute that previously took 3 hours to load.

This is the interface:

sqlBulkAdapterConfig

Some of the features are:

If the size of the message is small enough (as defined in the send handler properties) it takes the message and directly loads the data into the database. You can override the direct Stream to Database setting by changing the File Load boolean to True or if the message size is greater than the send handler property (by default set at 10mb)

Here is a screen shot of the send adapter handler, where you define where the schema needs to reside:

BulkSQLHandler

A sample schema’s http://targetnamespace/folder#RootNode turns into (starting in targetnamespace position 7) targetnamespace_folder_rootnode.xsd

Sample Schema Example

Enables all of the features of Bulk XML load 4.0

If an error occurs during the load, will create the xml data it is trying to load, the error.xml and a Visual Basis Script to re run the process for further testing (as long as the Debug Flag is set to True).

In the Event Log you see this entry:

BulkLoadError

This allow to manually run the bulk load to determine the error.

posted @ Wednesday, February 18, 2009 12:45 PM

Print

Comments on this entry:

 re: SQL Bulk Load adapter

Left by Mike Lile at 4/3/2009 1:52 PM
Gravatar

I've run in to a similar problem and had considered developing a similar adapter; do you have plans to release what you've done to the general public?

# re: SQL Bulk Load adapter

Left by Eric Stott at 4/6/2009 1:22 AM
Gravatar

I am right now determining a price for this, as I am finding more and more uses for this as a standalone adapter.

 re: SQL Bulk Load adapter

Left by Vlad at 4/21/2009 1:50 PM

Microsoft BizTalk Adapter Pack 2 includes the WCF SQL Adapter that can be used for consistent high volume usage. It has been tested to load a huge message without the Out of memory exception.

# re: SQL Bulk Load adapter

Left by Eric Stott at 7/7/2009 3:30 AM
Gravatar

Here is the price for the adapter: http://stottis.com/services.html

Your comment:



 (will not be displayed)


 
 
 
Please add 5 and 2 and type the answer here:
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910