FOR XML support for the user-defined data types (UDT)
Applies to: SQL Server Azure SQL Database Azure SQL Managed Instance
FOR XML doesn't support common language runtime (CLR) user-defined data types (UDTs).
To use FOR XML with CLR user-defined data types, make sure that the data type has an XML serialization, and use an explicit cast to XML in the FOR XML select clause.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for