sql >> Base de Datos >  >> RDS >> Sqlserver

SQL Server 2005 para XML explícito:necesita ayuda para formatear

prueba

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