2025-06-26 18:47:11 +02:00

9 lines
268 B
Transact-SQL

CREATE PROCEDURE [dbo].[sp_getMenuElements]
AS
BEGIN
select id,page_name,(select count(*) FROM tTreeview WHERE parentid=sc.id) childnodecount,
logical_name,
aspxPagePath
FROM tTreeview sc where parentid is NULL
ORDER BY position;
END