Retrieving relational data as XML Document

  • How can I force the empty result set to XML format, so that empty nodesdisplay.

    E.g

    select a,b

    from tableName for xml path('Some Node'), root('Some root'),elements xsinil,type

    results:

  • Thanks, I've got the answer already. I had to use isnull() function for this

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply