I’d like to create a mssql stored procedure to run a query like the following:
SELECT thingID
FROM things
WHERE thingParentID = #arguments.id#
recursively, accumulating thingIDs in a list which is then returned by the stored procedure.
Does anyone know of a example like this that they can link to? or some documentation that might help me?
Thanks.
This will work on SQL Server 2005 and up.