how to generate XML out of QUERY?



how to generate XML out of QUERY?..

Answer / 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

More SQL Server Interview Questions

Why we need sql server?

0 Answers  


What is a ddl statement?

0 Answers  


my name is sejal I have cleared the sbi clerk exam. I am BCA graduate My favorite subject RDBMS Relational database management system. so please send me rRDBMS related interview questions

0 Answers  


What is built-in/administrator?

0 Answers  


How do we upgrade from SQL Server 6.5 to 7.0 and 7.0 to 2000?

0 Answers  






What is the data type of time?

0 Answers  


How do I manually uninstall an instance of sql server 2016?

0 Answers  


List the different index configurations possible for a table?

0 Answers  


I am Having tables T1 and T2 both having same data how to check (or) compare the data in both table are same?

3 Answers  


What value could be assigned to Varchar Type?

3 Answers  


What is the difference between osql and query analyzer?

0 Answers  


What are the new features in SQL Server 2005 when compared to SQL Server 2000?

0 Answers  


Categories