Hi all
We've been told that we can no longer use SQL 2000's FOR XML EXPLICIT (the customer only has SQL 7) and must change all our SPs to return a recordset.
Is it feasable to write a 'translation' function (not necessarily generic) to take the recordset now returned and parse it into an XML document so that we don't have to make too many coding chages? My idea is to loop through the recordset and match the various fields to the required XML node - much like the original SP would have done. We will have to do some XML parsing eventually as it is a requirement for certain functions to return XML (which we are currently formatting througn XSLT).
I'm using ASP .NET with C# - what are your thoughts on this? Should I take some time to write my translation functions or is it a waste?
Thanks as always
Craftor
PS: If anyone feels this would be better placed in another forum, please let me know.
We've been told that we can no longer use SQL 2000's FOR XML EXPLICIT (the customer only has SQL 7) and must change all our SPs to return a recordset.
Is it feasable to write a 'translation' function (not necessarily generic) to take the recordset now returned and parse it into an XML document so that we don't have to make too many coding chages? My idea is to loop through the recordset and match the various fields to the required XML node - much like the original SP would have done. We will have to do some XML parsing eventually as it is a requirement for certain functions to return XML (which we are currently formatting througn XSLT).
I'm using ASP .NET with C# - what are your thoughts on this? Should I take some time to write my translation functions or is it a waste?
Thanks as always
Craftor
PS: If anyone feels this would be better placed in another forum, please let me know.