Web Server forum
Back To The Forum Home!Search!Private Messaging System

This is Interesting: Free IT Magazines Now Free shipping to   
Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > How to pass XML document to SQL sp in Orchestration?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

DougW is offline     How to pass XML document to SQL sp in Orchestration?  
DougW


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for DougW Click here to Send DougW a Private Message Find more posts by DougW Add DougW to your buddy list
 
08-16-04 12:49 PM

I able to pass parameters to a SQL stored procedure using the adapter, but I
 am not getting my desired result.

How do I create a map that puts my whole XML document into my parameter fiel
d in my stored procedure Schema?  I am only able to map the data within fiel
ds, not whole document.

I am trying to insert thousands of records into a table using OpenXML, but I
 am not able to pass the whole document.

I have also tried to use updategrams, but the performance is much too slow.

Thanks for help!




[ Post a follow-up to this message ]



    RE: How to pass XML document to SQL sp in Orchestration?  
Alan Smith


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-16-04 10:56 PM

Hi Doug,

You can get the string content of a message as follows:

msgXmlDocument = Msg;
xmlString = msgXmlDocument.OuterXml;

You could then set this to a string parameter for your SP.

Is there not a limit on parameter size for SPs? I seem to remenber running
into this before, at 8000 chars (4000 unicode), not sure if it still applys.

There are a couple of other optins you could try:

Split up the message into sub-messages for each node, and call an SP with ea
ch
sub message, using the SQL adapter.

Pass the message to a .net class that will then call the database.

Cheers,

Alan


"DougW" wrote:

>
> I able to pass parameters to a SQL stored procedure using the adapter,
> but I am not getting my desired result.
>
> How do I create a map that puts my whole XML document into my parameter
> field in my stored procedure Schema?  I am only able to map the data
> within fields, not whole document.
>
> I am trying to insert thousands of records into a table using OpenXML,
> but I am not able to pass the whole document.
>
> I have also tried to use updategrams, but the performance is much too
> slow.
>
> Thanks for help!
>
>
>
> --
> DougW
> ------------------------------------------------------------------------
> Posted via http://www.webservertalk.com
> ------------------------------------------------------------------------
> View this thread: http://www.webservertalk.com/message352118.html
>
>





[ Post a follow-up to this message ]



DougW is offline     Re: RE: How to pass XML document to SQL sp in Orchestration?  
DougW


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for DougW Click here to Send DougW a Private Message Find more posts by DougW Add DougW to your buddy list
 
08-17-04 05:14 PM

Alan,

Thanks for the help, but I don't understand exactly how to do this?  

I am assuming that I should be using the Constuct Assignment and entering:

msgOutbound = msgInbound.OuterXml;

where msgOutbound is a System.String.

I don't think this is right.  Please help.

quote:
Originally posted by Alan Smith Hi Doug, You can get the string content of a message as follows: msgXmlDocument = Msg; xmlString = msgXmlDocument.OuterXml; You could then set this to a string parameter for your SP. Is there not a limit on parameter size for SPs? I seem to remenber running into this before, at 8000 chars (4000 unicode), not sure if it still applys. There are a couple of other optins you could try: Split up the message into sub-messages for each node, and call an SP with ea ch sub message, using the SQL adapter. Pass the message to a .net class that will then call the database. Cheers, Alan "DougW" wrote: > > I able to pass parameters to a SQL stored procedure using the adapter, > but I am not getting my desired result. > > How do I create a map that puts my whole XML document into my parameter > field in my stored procedure Schema? I am only able to map the data > within fields, not whole document. > > I am trying to insert thousands of records into a table using OpenXML, > but I am not able to pass the whole document. > > I have also tried to use updategrams, but the performance is much too > slow. > > Thanks for help! > > > > -- > DougW > ------------------------------------------------------------------------ > Posted via http://www.webservertalk.com > ------------------------------------------------------------------------ > View this thread: http://www.webservertalk.com/message352118.html > >




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 02:57 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 

Back To The Top
Home | Usercp | Faq | Register