MS SQL Server XML Integration Question:

Download Job Interview Questions and Answers PDF

What is FOR XML in SQL Server?

SQL Server XML Integration Interview Question
SQL Server XML Integration Interview Question

Answer:

FOR XML allows data to be retrieved in an XML format. The FOR XML clause needs to be mentioned at the end of SELECT statement. There are three modes of FOR XML:-

RAW mode: - An XML element is formed for each row in the query results.

AUTO mode: - The query results are returned as nested XML elements.

Explicit mode: - the format of the XML document returned by the query can be completely controlled by the query.

Download SQL Server XML Integration Interview Questions And Answers PDF

Previous QuestionNext Question
What are XML indexes?What is the OPENXML statement in SQL Server?