Hi @Simonas Stilius ,
Welcome to Microsoft Q&A platform and thankyou for posting your query.
As I understand your query here is that you want to parse the SQL column having XML content. Basically, you want to fetch the ChildNode value from the XML content. Please correct me if my understanding is wrong. Is there any more transformations you want to perform on top of that as I see you want to use Data flow, otherwise you can use ADF pipeline approach.
In the Copy activity , try the following Query in the Query option of Source setting :
Select Y.value('(ChildNode)[1]','VARCHAR(20)') as ChildNode From
( select cast(xmldata as xml) xmldata from xmldataTable )a
Outer Apply a.xmldata.nodes('RootNode') as X(Y)
Please refer to the following blog post for more details : https://www.sqlshack.com/filtering-xml-columns-using-xquery-in-sql-server/
Hope this will help. Please let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you.
Original posters help the community find answers faster by identifying the correct answer. Here is how - Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators