Sqlserver
 sql >> Base de Dados >  >> RDS >> Sqlserver

SQL Server 2005 para XML Explicit - Precisa de ajuda para formatação


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