Viewing 15 posts - 31 through 45 (of 140 total)
If you are able to influence the development from the off, then I would go with TVP as shreding XML is very expensive.
There are lots of resources on this very...
December 12, 2013 at 4:56 am
Love the "maybe" option! made me think twice before answering 🙂
December 5, 2013 at 2:51 am
You can solve this by shreding the data into the two tables by using the nodes functions. I have created this example:
--create our tables
CREATE TABLE Jobs (JobCode INT PRIMARY KEY...
November 7, 2013 at 8:55 am
danka_6786978 (7/25/2013)
Unfortunately it's exactly the same thing as before. But thanks for trying 🙂
That's odd then.. When i pass your "Current Result" xml example through that style sheet, it outputs...
July 25, 2013 at 10:01 am
I'm not very good at XSL myself, but does this get you what you need?
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="test_3">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy><xsl:apply-templates select="/a:Report/a:Document"/></xsl:copy>
</xsl:template>
<xsl:template match="*">
...
July 25, 2013 at 9:47 am
Have you got an example before/after xml that you can post as that may help
July 25, 2013 at 1:27 am
No problem.. thank you for the nice feedback.. 🙂
July 8, 2013 at 2:19 pm
Hi, I've just come up with this... does this help with what you need:
declare @xml xml = '<root>
<elem10 Attr01="9.00" Attr02="9.00" Attr03="9.00" Attr04="9.00" Attr05="9.00" Attr06="9.00">
<elem101010 Attr01="9.00" Attr02="9.00" Attr03="9.00" Attr04="9.00" Attr05="9.00" Attr06="9.00">
<elem10101010...
July 8, 2013 at 12:48 pm
Hi. when you are specifying xpaths (that is the xml path to the node you want), you need to specify either the full path to the xml node that you...
July 4, 2013 at 1:56 pm
Ok, we don't need to transform the xml first via xquery if you only want to shred the xml to a flat table. from your original post it appeared that...
July 3, 2013 at 12:17 pm
It doesn't get dumped anywhere, it is just a select query.
To insert the transformed xml into a table, just add an insert statement before the select i.e.
;with xmlnamespaces ('urn:com.workday/bsvc' as...
July 3, 2013 at 2:16 am
Hi. That snippit of xml that you have pasted seems to be a little different to your original xml that you posted earlier on.
Try this updated version of the query...
July 2, 2013 at 11:31 am
You'll need to read the xml data in from the file to a variable before running the example that I posted earlier.
Reading in the data is quite straight forward...
July 2, 2013 at 9:36 am
Viewing 15 posts - 31 through 45 (of 140 total)