Look for the "FOR XML" clause in SQL Books Online.
SELECT Field1, Field2
FROM FOO FOR XML AUTO
Gary Johnson
Microsoft Natural Language Group
DBA, Sr. DB Engineer
This posting is provided "AS IS" with no warranties, and confers no rights. The opinions expressed in this post are my own and may not reflect that of my employer.