Example of Creating XML File Using T-SQL

SELECT
(
 SELECT 'ProjectID' AS ProjectID,
'ProjectName' AS ProjectName
FOR
XML PATH('Project'),
TYPE
)
FOR XML PATH(''),
ROOT('MyProjectXML')

Comments

Popular posts from this blog

How to create RSS Feed in Asp.Net

Auto generate change scripts in SQL Server Management Studio SSMS for tables

HOW TO Use the NumericUpDown Control