logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What is the use of FOR XML in SQL Server?


  • Correct Answer
  • SQL Server is having a fantastic feature to retrieve data persisted in the form of XML format The data in the XML format can be retrieved using FOR XML clause appending to the SELECT statement It offers 3 modes - ?FOR XML AUTO": Returns XML elements that are nested, based on which tables are listed in the "from" part of the query, and which fields are listed in the "select" part - "FOR XML RAW": Returns XML elements with the "row" prefix (ex: "") Each column in a table is represented as an attribute and null column values aren't included - "FOR XML EXPLICIT": Explicit mode is the most complex shaping method used in SQL Server 2000 It allows users to query a data source in such a way that the names and values of the returned XML are specified before the query batch is executed 


  • Technology problems


    Search Results


    • 1. What is Xpath?
    • Discuss
    • 2. What is XML template?
    • Discuss
    • 3. How do you parse/validate the XML document?
    • Discuss
    • 4. How do you load data from XML file to a ORACLE table?
    • Discuss
    • 5. What is XML Namespace?
    • Discuss
    • 6. What is EXtensible Application Markup Language (XAML)?
    • Discuss
    • 7. What is the use of IP based hosting?
    • Discuss
    • 8. What is the use of Name based hosting?
    • Discuss
    • 9. What needs to be taken into consideration to host a website?
    • Discuss
    • 10. How does traffic measured in hosting platform?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment