In this article you will learn how to use XML In SQL Server.
Introduction
Use For XML in SQL Server
There are four Models:
Description for Models
( Ref: MSDN). All Models Examples Firstly, create a table and insert data in the table Step 1: Create a table. You can create a table or use your existing table. Figure 1.1 Step 2: Insert data in table. Insert data of created table structure. Figure 1.2 Step 3: Retrieve data in table. You can see data is inserted from the table: Figure 1.3 RAW Figure 1.4 Simple used RAW Output
Functions in SQL Server: Practical Guide