Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
dcsearle
Frequent Visitor

SQL Column Containing XML

Hi,

I've a SQL table as a datasource and a lakehouse as a destination. The SQL table has a column which is storing XML data (for extensibility, it's a set of custom fields we can add to an application). 
I'm looking for the best way of extracting specific fields from the XML column. I've tried simply loading the column and then querying it via the SQL analytics end point, but it doesn't seem to support querying using XML methods.

Can anyone advise on what is a valid or better approach for achieving this? Is it better to do it during the load as part of the pipleine or am I missing an alternative option?

Thanks,

David

3 REPLIES 3
Anonymous
Not applicable

Hi @dcsearle 

 

Of course, it's a good idea to prepare the data as a query or view before loading it into the pipeline.


​With this approach, you can leverage SQL's query capabilities to transform and clean data before it enters the pipeline.

 

Steps to prepare data using SQL view:


​Create a view to extract XML fields. Use SQL to create a view that extracts a specific field from an XML column.


​You can query this view for structured data.


​Load the data from this view into the lakehouse
.

 

Regards,

Nono Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

dcsearle
Frequent Visitor

I'm guessing I could prepare the data as a query or view and make use of the SQL functionality there prior to loading it into the pipeline...

 

Let me know if any other suggestions.

@dcsearle  can you please explain what syntax you tried that did not work. I have a similar rask in few days, I can learn from you. With a regular sql server (opposed to azure) usually xml cam be handled by xpath syntax such as value, nodes combined with cross apply

Did I answer your question? Mark my post as a solution!
Proud to be a Super User!
My custom visualization projects
Plotting Live Sound: Viz1
Beautiful News:Viz1, Viz2, Viz3
Visual Capitalist: Working Hrs

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.