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 |
Explain triggers?
What is Files and Filegroups in SQL Server & it's implementation.
Difference between aggregate functions of sql?
Which language is supported by sql server?
What is the use of =,==,=== operators?
How to display a past time in days, hours and minutes?
How to use values from other tables in update statements in ms sql server?
How to create indexed view?
What are the types of resultset?
What is join and name different type of joins?
What is query processing?
What is an index. What are the types?
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)