Sqlserver
 sql >> Database >  >> RDS >> Sqlserver

SQL Server 2005 per XML esplicito:è necessaria la formattazione della guida

prova

SELECT
    1 AS Tag,
    0 AS Parent,
    AccountNumber AS [Root!1!AccountNumber!element]
FROM
    Location.LocationMDAccount
WHERE
    LocationID = 'long-guid-here'
FOR XML EXPLICIT