SQL Server has the hierarchyid data type to deal with hierarchical data.
It would be a good idea if OutSystems would support this datatype so we can make use of the hierarchical data support of SQL Server.
See https://docs.microsoft.com/en-us/sql/relational-databases/hierarchical-data-sql-server