how to generate XML out of QUERY?

Answer Posted / mahendra raja

select * from [table name] for xml auto (or)
select * from [table name] for xml raw

But if there is any binary field column in table then this
query wont work.

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How would you go about developing a ssrs report?

135


What is the meaning of resultset type_scroll_insensitive?

730


When would you use the stored procedures or functions?

750


What are partitioned views and distributed partitioned views?

798


Can we add a cpu to sql server?

703






System requirements for sql server 2005 express edition?

729


what is the difference between Tabular and Matrix report?

146


Explain microsoft sql server functions?

767


How does normalization work?

689


What are orphan records?

709


How to receive output values from stored procedures?

705


Where sql server user names and passwords are stored in sql server? : sql server database administration

795


Explain about nested stored procedure?

780


How to execute multiple stored procedures at one time in sql server?

687


What is the data type of time?

689