Hi,
My database guys wanted to write data into an XML string in the database.
For ex:
Key from Source will stay as Key in the target but all other attributes go as an XML String.
I think its doable but wanted to get opinions if anybody faced issues with it and what do I use : XML Transformer and XML Output stage?
Thanks
nsm.
Writing XML strings to Database
Moderators: chulett, rschirm, roy
Oracle even has that datatype. One caveat is that if you want more than 2Kb of XML then you will have to use a CLOB or BLOB in Oracle or comparable datatypes in other databases.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
Yep, unsupported. We have a couple of jobs here that send over 40 VarChar2 columns containing XML (and SOAP) to Oracle, where they are combined into one BLOB for compression and storage. The same happens on the way back into DataStage and the whole thing is a complex and unwieldy system - I wish we could have used Server jobs and Hashed files for storage for this portion.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
All important considerations. Here's how you can do it if you choose a supported datatype.....
If the strings are short enough to use a supported datatype, like char or longvarchar, just have a single column on the output link of your XMLOutput Stage.... call it anything, like "myXMLoutput" ...give it a longvarchar and some length, such as 99999, and then put a single slash in the Description property. All of your xml will go into that column as a single string.
Ernie
If the strings are short enough to use a supported datatype, like char or longvarchar, just have a single column on the output link of your XMLOutput Stage.... call it anything, like "myXMLoutput" ...give it a longvarchar and some length, such as 99999, and then put a single slash in the Description property. All of your xml will go into that column as a single string.
Ernie
Ernie Ostic
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>
blogit!
<a href="https://dsrealtime.wordpress.com/2015/0 ... ere/">Open IGC is Here!</a>