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
Post a Comment