Generating XML based on Schema

Hi,

i need Info regarding this

Can a stored procedure in SQL Server 2005 generate XML data based on the schema, We don't prefer to manually build an xml string inside the stored proc?

Is there any SQL Server 2005 feature to do it if possible?

Can i find any article on how to do this.

Thanks,

Vaishu

[351 byte] By [vaishali.mspp] at [2008-2-16]
# 1

How about using "FOR XML AUTO" in your select!

select * from tbl1 FOR XML AUTO

YogeshRanade at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...

SQL Server

Site Classified