The question is how do I retrieve the whole message, with formatting intact and insert into the database. I require to insert all incoming messages into the database for audit purposes.
Thought it would be something like this, but this returns the whole logical tree.
INSERT INTO Database.AUDIT(MSG_DETAIL)
VALUES(CAST(BITSTREAM(Root) AS CHAR));
Posted: Wed Feb 15, 2006 4:54 am Post subject: Re: Inserting complete message
Chevalier
Joined: 17 May 2001 Posts: 455
alvinlimtc wrote:
Thought it would be something like this, but this returns the whole logical tree.
INSERT INTO Database.AUDIT(MSG_DETAIL)
VALUES(CAST(BITSTREAM(Root) AS CHAR));
Try
CAST(BITSTREAM(Body) AS CHAR CCSID Root.Properties.CodedCharSetId)
instead. I might have got the name of the CCSID element wrong (I can't check I'm away from my dev machine).
I have done something similar with embedding the body of a message in the an "OriginalData" element of a diagnostic XML. _________________ Regards
John
The pain of low quaility far outlasts the joy of low price.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum