In SQL Server can I insert multiple nodes into XML from a table?

后端 未结 3 1478
夕颜
夕颜 2021-01-15 16:02

I want to generate some XML in a stored procedure based on data in a table.

The following insert allows me to add many nodes but they have to be hard-coded or use va

3条回答
  •  时光说笑
    2021-01-15 16:56

    Can you tell a bit more about what exactly you are planning to do. Is it simply generating XML data based on a content of the table or adding some data from the table to an existing xml structure?

    There are great series of articles on the subject on XML in SQLServer written by Jacob Sebastian, it starts with the basics of generating XML from the data in the table

提交回复
热议问题