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

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -