Reputation: 8574
Does anybody have any tips/tricks as to how to improve performance in the following scenario:
FOR XML EXPLICIT
to put this into the proper format.So, I do have a couple options here:
FOR XML EXPLICIT
; are there any performance benefits gained by using any of the other XML modes (RAW
, AUTO
, PATH
)?Thanks again.
~Jim
Upvotes: 0
Views: 575
Reputation: 23228
This is your option right here. XML transformation is going to be far more efficient in C# than in SQL.
The above XML will eventually be loaded into our C# codebase to be uploaded to its final destination. Does it make more sense to simply load the record set into C#, and do the XML transformation there, instead of doing it on the database side?
Upvotes: 2