Presuming you're using SQLServer 2000 then check out the FOR XML and OPENXML keywords.
If you're on anything less, like say 7. then you can use ADO XML recordsets (ADO 2.6 and higher) but there are no TSQL commands available
I have found it is possible to please all of the people all of the time if you do exactly what they want. Harold Macmillan 1961
I have found it is possible to please all of the people all of the time if you do exactly what they want. Harold Macmillan 1961