SQL Server 2008: How to use SQL to output XML from Query? -


i declare variable 'xmloutput' , have produce contents of table in xml format. if provide simple example work off of appreciate it. tried using xmlelement() not work.

sql server provides ability generate xml based on table structure via for xml clause. it's options are:

  • raw
  • auto
  • path
  • explicit

there examples each in link.


Comments

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -